From eab4686fb178db31fd5037d5eaab52df007d1cff Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 3 Apr 2026 17:25:07 +0200 Subject: [PATCH] Don't crash on non existent properties --- client/hardware.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/hardware.cpp b/client/hardware.cpp index b51ba930..204f8a71 100644 --- a/client/hardware.cpp +++ b/client/hardware.cpp @@ -35,6 +35,8 @@ static std::string get_property(const char * property) { auto info = __system_property_find(property); std::string result; + if (not info) + return result; wrap_lambda cb = [&result](const char * name, const char * value, uint32_t serial) { result = value; };