From c983bde03186eacb1a1335c5871ace84ac567679 Mon Sep 17 00:00:00 2001 From: Joern Muehlencord Date: Sun, 7 Jun 2020 16:41:26 +0200 Subject: [PATCH] fixed NPE --- .../de/muehlencord/shared/network/whois/WhoisInformation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/src/main/java/de/muehlencord/shared/network/whois/WhoisInformation.java b/network/src/main/java/de/muehlencord/shared/network/whois/WhoisInformation.java index af660c5..a43918d 100644 --- a/network/src/main/java/de/muehlencord/shared/network/whois/WhoisInformation.java +++ b/network/src/main/java/de/muehlencord/shared/network/whois/WhoisInformation.java @@ -124,7 +124,7 @@ public class WhoisInformation { throw new WhoisException("network information not set"); } - if (networkInformation.getDescription().contains("AFRINIC-CIDR-BLOCK")) { + if (networkInformation.getDescription() != null && networkInformation.getDescription().contains("AFRINIC-CIDR-BLOCK")) { throw new WhoisException("Deletgate to AFRINIC found"); }