Skip to content

Commit

Permalink
Fix NPE for resource with pwd-as-config (MID-5046)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 28, 2019
1 parent 9734453 commit 48c515c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -200,7 +200,7 @@ private static void checkEncrypted(PrismPropertyValue<?> pval) {
@SuppressWarnings("unchecked")
PrismPropertyValue<ProtectedStringType> psPval = (PrismPropertyValue<ProtectedStringType>)pval;
ProtectedStringType ps = psPval.getValue();
if (ps.getClearValue() != null) {
if (ps != null && ps.getClearValue() != null) {
throw new IllegalStateException("Unencrypted value in field " + propName);
}
} else if (itemDef.getTypeName().equals(MailConfigurationType.COMPLEX_TYPE)) {
Expand Down

0 comments on commit 48c515c

Please sign in to comment.