KEYCLOAK-830

RestEasy client proxy NullPointerException with Keycloak
This commit is contained in:
Stian Thorgersen 2015-01-02 12:52:39 +01:00
parent f97b71c207
commit d1119a1c26

View file

@ -31,7 +31,7 @@ public class SkeletonKeyContextResolver implements ContextResolver<ObjectMapper>
@Override
public ObjectMapper getContext(Class<?> type) {
if (type.getPackage().getName().startsWith(getClass().getPackage().getName())) return mapper;
if (type.getPackage() != null && type.getPackage().getName().startsWith(getClass().getPackage().getName())) return mapper;
return null;
}
}