It is not sufficient for the 'group' to be the only thing checked here for null. If the resource comes in with an ChangeableElementGroup that is empty, that needs to be checked too:
ChangeableElementGroup group = resource.getChangeableElementGroup();
if(group == null){
...
}
Change to something like:
if(group == null || (group.getChangeDescription() == null && group.getStatus() == null)) {
...
}
It is not sufficient for the 'group' to be the only thing checked here for
null. If the resource comes in with anChangeableElementGroupthat is empty, that needs to be checked too:Change to something like: