File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
AndroidSDKCore/src/main/java/com/leanplum/internal Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public class Constants {
4343 public static final String LEANPLUM_PACKAGE_IDENTIFIER = BuildConfig .LEANPLUM_PACKAGE_IDENTIFIER ;
4444 static final String INVALID_MAC_ADDRESS = "02:00:00:00:00:00" ;
4545 static final String INVALID_MAC_ADDRESS_HASH = "0f607264fc6318a92b9e13c65db7cd3c" ;
46+ static final String INVALID_UUID = "00000000-0000-0000-0000-000000000000" ;
4647
4748 /**
4849 * From very old versions of the SDK, leading zeros were stripped from the mac address.
Original file line number Diff line number Diff line change @@ -258,6 +258,10 @@ public static boolean isValidUserId(String userId) {
258258 Log .d (logPrefix + "(sentinel): " + userId );
259259 return false ;
260260 }
261+ if (Constants .INVALID_UUID .equals (userId )) {
262+ Log .d (logPrefix + "(zero uuid): " + userId );
263+ return false ;
264+ }
261265 if (userId .length () > Constants .MAX_USER_ID_LENGTH ) {
262266 Log .d (logPrefix + "(too long): " + userId );
263267 return false ;
@@ -278,7 +282,8 @@ public static boolean isValidDeviceId(String deviceId) {
278282 if (deviceId == null || deviceId .isEmpty () ||
279283 Constants .INVALID_ANDROID_ID .equals (deviceId ) ||
280284 Constants .INVALID_MAC_ADDRESS_HASH .equals (deviceId ) ||
281- Constants .OLD_INVALID_MAC_ADDRESS_HASH .equals (deviceId )) {
285+ Constants .OLD_INVALID_MAC_ADDRESS_HASH .equals (deviceId ) ||
286+ Constants .INVALID_UUID .equals (deviceId )) {
282287 Log .d (logPrefix + "(sentinel): " + deviceId );
283288 return false ;
284289 }
You can’t perform that action at this time.
0 commit comments