From b11894a5458e564d8ab6c092b556eb0091d1a985 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sun, 5 Jun 2022 08:13:20 +0100 Subject: [PATCH] prevent exceptions in event dispatch thread on profile fetching --- core/src/main/groovy/com/muwire/core/trust/TrustService.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/groovy/com/muwire/core/trust/TrustService.groovy b/core/src/main/groovy/com/muwire/core/trust/TrustService.groovy index 6a879037..5a8bef41 100644 --- a/core/src/main/groovy/com/muwire/core/trust/TrustService.groovy +++ b/core/src/main/groovy/com/muwire/core/trust/TrustService.groovy @@ -144,6 +144,8 @@ class TrustService extends Service { } void onMWProfileFetchEvent(MWProfileFetchEvent event) { + if (event.profile == null) + return def dest = event.profile.getHeader().getPersona().getDestination() TrustEntry te = good[dest] if (te == null)