fixed NPE
This commit is contained in:
@ -124,7 +124,7 @@ public class WhoisInformation {
|
|||||||
throw new WhoisException("network information not set");
|
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");
|
throw new WhoisException("Deletgate to AFRINIC found");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user