fixed npe cause by race condition when axolotl service isn't initialized
This commit is contained in:
		
							parent
							
								
									28c64c2bd1
								
							
						
					
					
						commit
						9972f5eabc
					
				| @ -632,6 +632,9 @@ public class Account extends AbstractEntity { | ||||
| 		if (otr != null) { | ||||
| 			fingerprints.add(new XmppUri.Fingerprint(XmppUri.FingerprintType.OTR,otr)); | ||||
| 		} | ||||
| 		if (axolotlService == null) { | ||||
| 			return fingerprints; | ||||
| 		} | ||||
| 		fingerprints.add(new XmppUri.Fingerprint(XmppUri.FingerprintType.OMEMO,axolotlService.getOwnFingerprint().substring(2),axolotlService.getOwnDeviceId())); | ||||
| 		for(XmppAxolotlSession session : axolotlService.findOwnSessions()) { | ||||
| 			if (session.getTrust().isVerified() && session.getTrust().isActive()) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch