findbugs: null-checks(cherry picked from commit

c58e509924)
This commit is contained in:
Daan Hoogland 2014-01-28 15:44:04 +01:00 committed by Daan Hoogland
parent fe262caa75
commit 44bc2beb14
1 changed files with 3 additions and 1 deletions

View File

@ -307,7 +307,9 @@ public class DomainChecker extends AdapterBase implements SecurityChecker {
}
}
//didn't find in upper tree
if (zoneDomainRecord.getPath().contains(accountDomainRecord.getPath())) {
if (zoneDomainRecord != null &&
accountDomainRecord != null &&
zoneDomainRecord.getPath().contains(accountDomainRecord.getPath())) {
return true;
}
}