Skip to content

Commit

Permalink
fix for NPE in task GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Suta committed Jul 22, 2014
1 parent af7802d commit 27f6aaa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -162,7 +162,7 @@ public TaskDto(TaskType taskType, ModelService modelService, TaskService taskSer
private void fillInResourceReference(TaskType task, TaskManager manager, OperationResult result, ModelService service){
ObjectReferenceType ref = task.getObjectRef();

if(ResourceType.COMPLEX_TYPE.equals(ref.getType())){
if(ref != null && ResourceType.COMPLEX_TYPE.equals(ref.getType())){
resourceRef = new TaskAddResourcesDto(ref.getOid(), getTaskObjectName(task, manager, service, result));
}
}
Expand Down

0 comments on commit 27f6aaa

Please sign in to comment.