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() {
 | 
					        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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user