1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-04 20:22:07 +01:00

Fix NPE for recevied messages with missing public key

This commit is contained in:
Paul Schaub 2021-04-26 15:22:54 +02:00
parent 171f916df2
commit 2077a5dc96

View file

@ -599,6 +599,10 @@ public final class OpenPgpManager extends Manager {
return; return;
} }
if (contentElement == null) {
return;
}
else { else {
throw new AssertionError("Invalid element received: " + contentElement.getClass().getName()); throw new AssertionError("Invalid element received: " + contentElement.getClass().getName());
} }