Skip to content

Commit e601fb0

Browse files
committed
fix: added null pointer check
1 parent 6c5b44f commit e601fb0

File tree

1 file changed

+3
-1
lines changed
  • Adjust/sdk-core/src/main/java/com/adjust/sdk

1 file changed

+3
-1
lines changed

Adjust/sdk-core/src/main/java/com/adjust/sdk/Util.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ protected String doInBackground(Context... params) {
165165

166166
@Override
167167
protected void onPostExecute(String playAdiId) {
168-
onDeviceIdRead.onGoogleAdIdRead(playAdiId);
168+
if (onDeviceIdRead != null) {
169+
onDeviceIdRead.onGoogleAdIdRead(playAdiId);
170+
}
169171
}
170172
}.execute(context);
171173
}

0 commit comments

Comments
 (0)