fixed NPE

This commit is contained in:
2020-06-07 16:41:26 +02:00
parent 0e21c9baf7
commit c983bde031

View File

@ -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");
}