Skip to content

Commit 2be8e02

Browse files
authored
Fix the NPE within OneSignalCacheCleaner.java (#1047)
* Boolean expression for closing of the cursor has a `NPE` because of the usage of `&` instead of `&&`
1 parent 46a1082 commit 2be8e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignalCacheCleaner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void run() {
113113
} catch (JSONException e) {
114114
e.printStackTrace();
115115
} finally {
116-
if (cursor != null & !cursor.isClosed())
116+
if (cursor != null && !cursor.isClosed())
117117
cursor.close();
118118
}
119119

0 commit comments

Comments
 (0)