Skip to content

Commit

Permalink
Fix NPE during launch
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Feb 7, 2016
1 parent 5fa3c49 commit 98fc609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/nallar/modpatcher/ModPatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static void addToCurrentClassLoader() {
ClassLoader cl = ModPatcher.class.getClassLoader();

if (cl instanceof LaunchClassLoader) {
if (System.getProperty("modpatcher.allowLoadingUnderLCL").equals("true")) {
if ("true".equals(System.getProperty("modpatcher.allowLoadingUnderLCL"))) {
LaunchClassLoader lcl = (LaunchClassLoader) cl;
cl = ReflectionHelper.<ClassLoader, LaunchClassLoader>getPrivateValue(LaunchClassLoader.class, lcl, "parent");
lcl.addClassLoaderExclusion("me.nallar.modpatcher");
Expand Down

0 comments on commit 98fc609

Please sign in to comment.