diff options
Diffstat (limited to 'Libraries/LibCore/ProcessStatisticsReader.cpp')
-rw-r--r-- | Libraries/LibCore/ProcessStatisticsReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibCore/ProcessStatisticsReader.cpp b/Libraries/LibCore/ProcessStatisticsReader.cpp index 13936b9f15..b9a55eb0c3 100644 --- a/Libraries/LibCore/ProcessStatisticsReader.cpp +++ b/Libraries/LibCore/ProcessStatisticsReader.cpp @@ -48,7 +48,8 @@ HashMap<pid_t, Core::ProcessStatistics> ProcessStatisticsReader::get_all() auto file_contents = file->read_all(); auto json = JsonValue::from_string(file_contents); - json.as_array().for_each([&](auto& value) { + ASSERT(json.has_value()); + json.value().as_array().for_each([&](auto& value) { const JsonObject& process_object = value.as_object(); Core::ProcessStatistics process; |