mirror of https://github.com/zlatinb/muwire
prevent exceptions in event dispatch thread on profile fetching
parent
7906bbffdb
commit
b11894a545
|
@ -144,6 +144,8 @@ class TrustService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
void onMWProfileFetchEvent(MWProfileFetchEvent event) {
|
void onMWProfileFetchEvent(MWProfileFetchEvent event) {
|
||||||
|
if (event.profile == null)
|
||||||
|
return
|
||||||
def dest = event.profile.getHeader().getPersona().getDestination()
|
def dest = event.profile.getHeader().getPersona().getDestination()
|
||||||
TrustEntry te = good[dest]
|
TrustEntry te = good[dest]
|
||||||
if (te == null)
|
if (te == null)
|
||||||
|
|
Loading…
Reference in New Issue