From bf9bcef62d9da953ca8e34c0e49ea384dde967fe Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 9 Aug 2022 01:35:43 +0200 Subject: fix check if system properties exist, take empty strings into consideration --- .../java/se/leap/bitmaskclient/base/utils/SystemPropertiesHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/se/leap/bitmaskclient/base/utils/SystemPropertiesHelper.java b/app/src/main/java/se/leap/bitmaskclient/base/utils/SystemPropertiesHelper.java index b148f685..ecef77d6 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/utils/SystemPropertiesHelper.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/utils/SystemPropertiesHelper.java @@ -30,7 +30,7 @@ public class SystemPropertiesHelper { e.printStackTrace(); } - return result != null; + return result != null && !result.isEmpty(); } } -- cgit v1.2.3