diff --git a/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/MultiClassLoader.java b/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/MultiClassLoader.java index 82cc6bd16..ebff2c1dd 100644 --- a/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/MultiClassLoader.java +++ b/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/MultiClassLoader.java @@ -215,6 +215,9 @@ public class MultiClassLoader extends ClassLoader { if (loader == THREAD_LOADER) loader = Thread.currentThread().getContextClassLoader(); + if (loader == null) // skip + continue; + rsrc = loader.getResource(name); if (rsrc != null) return rsrc;