CID-1261671 added null check

This commit is contained in:
Daan Hoogland 2015-01-05 15:55:33 +01:00
parent 54e5f28ace
commit 251e88c401
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ public class DomainDaoImpl extends GenericDaoBase<DomainVO, Long> implements Dom
if (id != null && id.longValue() == Domain.ROOT_DOMAIN) {
s_logger.error("Can not remove domain " + id + " as it is ROOT domain");
return false;
} else {
if(id == null) {
s_logger.error("Can not remove domain without id.");
return false;
}
}
DomainVO domain = findById(id);