CleverTap / clevertap-android-sdk

CleverTap Android SDK
MIT License
80 stars 74 forks source link

Fix NullPointerException caused during device id fetch SDK-3773 #602

Closed piyush-kukadiya closed 4 months ago

piyush-kukadiya commented 7 months ago

Calling getDeviceID() second time returns null value during AND operation. This PR fixes it by calling getDeviceID() only once and collect it in val for reuse in AND operation.