Merge branch '947-bluetooth-address-crash' into 'master'

Don't crash on empty bluetooth addresses

See merge request !538
This commit is contained in:
akwizgran
2017-05-12 09:26:57 +00:00

View File

@@ -19,7 +19,7 @@ public class PrivacyUtils {
@Nullable
public static String scrubMacAddress(@Nullable String address) {
if (address == null) return null;
if (address == null || address.length() == 0) return null;
// this is a fake address we need to know about
if (address.equals("02:00:00:00:00:00")) return address;
// keep first and last octet of MAC address