diff --git a/Userland/Applications/SpaceAnalyzer/main.cpp b/Userland/Applications/SpaceAnalyzer/main.cpp index 9c2213849a2..44f9262e3c2 100644 --- a/Userland/Applications/SpaceAnalyzer/main.cpp +++ b/Userland/Applications/SpaceAnalyzer/main.cpp @@ -45,8 +45,8 @@ static ErrorOr fill_mounts(Vector& output) TRY(json.as_array().try_for_each([&output](JsonValue const& value) -> ErrorOr { auto& filesystem_object = value.as_object(); MountInfo mount_info; - mount_info.mount_point = filesystem_object.get_deprecated("mount_point"sv).to_deprecated_string(); - mount_info.source = filesystem_object.get_deprecated("source"sv).as_string_or("none"sv); + mount_info.mount_point = filesystem_object.get_deprecated_string("mount_point"sv).value_or({}); + mount_info.source = filesystem_object.get_deprecated_string("source"sv).value_or("none"); TRY(output.try_append(mount_info)); return {}; }));