Browse Source

Merge pull request #13832 from thingsboard/fix/mobile-app

Fix NPE on Firebase app cleanup
pull/13838/head
Viacheslav Klimov 1 year ago
committed by GitHub
parent
commit
e309225f12
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      application/src/main/java/org/thingsboard/server/service/notification/provider/DefaultFirebaseService.java

6
application/src/main/java/org/thingsboard/server/service/notification/provider/DefaultFirebaseService.java

@ -140,8 +140,10 @@ public class DefaultFirebaseService implements FirebaseService {
} }
public void destroy() { public void destroy() {
app.delete(); if (app != null) {
app = null; app.delete();
app = null;
}
messaging = null; messaging = null;
log.debug("[{}] Destroyed FirebaseContext", key); log.debug("[{}] Destroyed FirebaseContext", key);
} }

Loading…
Cancel
Save