Skip to content

Commit

Permalink
Fixing NPE in PrismMarshaller
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jun 7, 2017
1 parent e4dce49 commit d54a7c5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -404,7 +404,7 @@ private <T> XNode serializePropertyValue(@NotNull PrismPropertyValue<T> value, P
return serializePolyString((PolyString) realValue);
} else if (beanMarshaller.canProcess(typeName)) {
XNode xnode = beanMarshaller.marshall(realValue);
if (realValue.getClass().getPackage() != null) {
if (realValue != null && realValue.getClass().getPackage() != null) {
TypeDefinition typeDef = getSchemaRegistry()
.findTypeDefinitionByCompileTimeClass(realValue.getClass(), TypeDefinition.class);
if (xnode != null && typeDef != null && !QNameUtil.match(typeDef.getTypeName(), typeName)) {
Expand Down

0 comments on commit d54a7c5

Please sign in to comment.