Skip to content

Commit

Permalink
Fix NPE in preview changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Dec 11, 2018
1 parent d6cd5df commit 58b27d2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -105,7 +105,7 @@ private boolean hasValidReferenceValue(SceneItemValue object) {

private ObjectTypeGuiDescriptor getObjectTypeDescriptor() {
SceneItemValue value = getModelObject();
if (value.getSourceValue() instanceof PrismReferenceValue) {
if (value != null && value.getSourceValue() instanceof PrismReferenceValue) {
QName targetType = ((PrismReferenceValue) value.getSourceValue()).getTargetType();
return ObjectTypeGuiDescriptor.getDescriptor(ObjectTypes.getObjectTypeFromTypeQName(targetType));
} else {
Expand Down

0 comments on commit 58b27d2

Please sign in to comment.