diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/DeviceInfo.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/DeviceInfo.java index 3cb2038ae..dfbf0a119 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/DeviceInfo.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/DeviceInfo.java @@ -693,7 +693,8 @@ public Boolean isBluetoothEnabled() { } public boolean isErrorDeviceId() { - return getDeviceID() != null && getDeviceID().startsWith(Constants.ERROR_PROFILE_PREFIX); + final String deviceID = getDeviceID(); + return deviceID != null && deviceID.startsWith(Constants.ERROR_PROFILE_PREFIX); } public boolean isLimitAdTrackingEnabled() {