Skip to content

Commit

Permalink
Fix NullPointerException in JAX-RS namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechhabarta committed Mar 20, 2017
1 parent 9246b13 commit b060795
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,13 @@ public boolean test(String className) {
}

public void setJaxrsNamespacingAnnotation(ClassLoader classLoader, String jaxrsNamespacingAnnotation) {
final String[] split = jaxrsNamespacingAnnotation.split("#");
final String className = split[0];
final String elementName = split.length > 1 ? split[1] : "value";
this.jaxrsNamespacingAnnotation = loadClass(classLoader, className, Annotation.class);
this.jaxrsNamespacingAnnotationElement = elementName;
if (jaxrsNamespacingAnnotation != null) {
final String[] split = jaxrsNamespacingAnnotation.split("#");
final String className = split[0];
final String elementName = split.length > 1 ? split[1] : "value";
this.jaxrsNamespacingAnnotation = loadClass(classLoader, className, Annotation.class);
this.jaxrsNamespacingAnnotationElement = elementName;
}
}

public boolean areDefaultStringEnumsOverriddenByExtension() {
Expand Down

0 comments on commit b060795

Please sign in to comment.