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

Fix NPE on Firebase app cleanup
This commit is contained in:
Viacheslav Klimov 2025-08-06 18:57:07 +03:00 committed by GitHub
commit e309225f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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