Skip to content
Snippets Groups Projects
Verified Commit 0c441e2f authored by Torsten Grote's avatar Torsten Grote
Browse files

Don't crash on empty bluetooth addresses

parent 6839d8b8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment