diff --git a/src/launch/lombok/launch/ShadowClassLoader.java b/src/launch/lombok/launch/ShadowClassLoader.java index 15a27f23c4..5f4b3afe3b 100644 --- a/src/launch/lombok/launch/ShadowClassLoader.java +++ b/src/launch/lombok/launch/ShadowClassLoader.java @@ -473,7 +473,7 @@ private boolean isPartOfShadowSuffix(String url, String name, String suffix) { private URL getResource_(String name, boolean noSuper) { String altName = null; - name = shader.reverseResourceName(name); + name = shader == null ? name : shader.reverseResourceName(name); if (name.endsWith(".class")) altName = name.substring(0, name.length() - 6) + ".SCL." + sclSuffix; for (File ce : override) { @@ -594,7 +594,7 @@ private Class urlToDefineClass(String name, URL res, boolean resolve) throws throw new ClassNotFoundException("I/O exception reading class " + name, e); } - shader.apply(b); + if (shader != null) shader.apply(b); Class c; try {