Fix NPE on Firebase app cleanup
This commit is contained in:
parent
85ae3ed778
commit
e0c2051c6a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user