Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Aug 9, 2019
2 parents d172566 + 64cdd2d commit d8af16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -83,7 +83,7 @@ public void onClick(final Optional<AjaxRequestTarget> target)
{
setSelectedTab(index);
onTabChange(index);
if (target != null && target.get() != null)
if (target != null && target.isPresent() && target.get() != null)
{
target.get().add(AjaxTabbedPanel.this);
}
Expand Down
Expand Up @@ -551,8 +551,8 @@ public void populateItem(Item<ICellPopulator<PrismContainerValueWrapper<CaseWork

CaseWorkItemType caseWorkItemType = unwrapRowModel(rowModel);
CaseType caseType = CaseTypeUtil.getCase(caseWorkItemType);
PrismReferenceValue refVal = caseType.getTargetRef().asReferenceValue();
String descriptionValue = refVal.getObject() != null ?
PrismReferenceValue refVal = caseType.getTargetRef() != null ? caseType.getTargetRef().asReferenceValue() : null;
String descriptionValue = refVal != null && refVal.getObject() != null ?
refVal.getObject().asObjectable().getDescription() : "";

c.add(new AttributeAppender("title", descriptionValue));
Expand Down

0 comments on commit d8af16f

Please sign in to comment.