Skip to content

Commit

Permalink
MID-4595 History tab for workflow-related events
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 12, 2018
1 parent f27e8ad commit b323b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -88,7 +88,7 @@ private void initLayout() {
kindIntent.add(new VisibleBehaviour(() -> isKindIntentVisible(kindIntentLabelModel)));
add(kindIntent);

if(getModel().getObject().asPrismContainerValue().contains(ObjectType.F_DESCRIPTION)) {
if(getModel().getObject() != null && getModel().getObject().asPrismContainerValue().contains(ObjectType.F_DESCRIPTION)) {
add(new Label(ID_DESCRIPTION, new PropertyModel<String>(getModel(), ObjectType.F_DESCRIPTION.getLocalPart())));
} else {
add(new Label(ID_DESCRIPTION, Model.of("")));
Expand Down
Expand Up @@ -247,7 +247,7 @@ private <O extends ObjectType> boolean isApplicable(ObjectDeltaOperation<? exten
PrismObject<O> object, AuditEventRecord lastEvent) {
OperationResult executionResult = lastEventDeltasOperation.getExecutionResult();
ObjectDelta<O> objectDelta = (ObjectDelta<O>) lastEventDeltasOperation.getObjectDelta();
if (executionResult.getStatus() == OperationResultStatus.FATAL_ERROR) {
if (executionResult != null && executionResult.getStatus() == OperationResultStatus.FATAL_ERROR) {
LOGGER.trace("Skipping delta {} in event {} because it is {}", objectDelta, lastEvent.getEventIdentifier(),
executionResult.getStatus());
return false;
Expand Down

0 comments on commit b323b92

Please sign in to comment.