Fix NullPointerException that would occur when getting a non-dnssec referral from...
[captive-validator.git] / src / com / verisign / tat / dnssec / CaptiveValidator.java
index b481e5d..c4ce498 100644 (file)
@@ -579,7 +579,7 @@ public class CaptiveValidator {
             return;
         }
 
-        if (nsec3s.size() > 0) {
+        if (nsec3s != null && nsec3s.size() > 0) {
             byte status = NSEC3ValUtils.proveNoDS(nsec3s, delegation, nsec3zone, mErrorList);
 
             if (status != SecurityStatus.SECURE) {