Skip to content

Need extended null check on edu.mayo.cts2.framework.webapp.rest.controller.UpdateHandler#update method #36

Description

@kevinpeterson

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)) {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions