From d1119a1c2604e49a16ad26848c0da00f2b4992a3 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 2 Jan 2015 12:52:39 +0100 Subject: [PATCH] KEYCLOAK-830 RestEasy client proxy NullPointerException with Keycloak --- .../src/main/java/org/keycloak/SkeletonKeyContextResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-jaxrs/src/main/java/org/keycloak/SkeletonKeyContextResolver.java b/core-jaxrs/src/main/java/org/keycloak/SkeletonKeyContextResolver.java index 01aafd6e78..8c99cad92a 100755 --- a/core-jaxrs/src/main/java/org/keycloak/SkeletonKeyContextResolver.java +++ b/core-jaxrs/src/main/java/org/keycloak/SkeletonKeyContextResolver.java @@ -31,7 +31,7 @@ public class SkeletonKeyContextResolver implements ContextResolver @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; } }