Merge pull request #13832 from thingsboard/fix/mobile-app
Fix NPE on Firebase app cleanup
This commit is contained in:
		
						commit
						e309225f12
					
				@ -140,8 +140,10 @@ public class DefaultFirebaseService implements FirebaseService {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void destroy() {
 | 
			
		||||
            if (app != null) {
 | 
			
		||||
                app.delete();
 | 
			
		||||
                app = null;
 | 
			
		||||
            }
 | 
			
		||||
            messaging = null;
 | 
			
		||||
            log.debug("[{}] Destroyed FirebaseContext", key);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user