mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Initialize sources list
Fixes crash NPE thrown by addFile()
This commit is contained in:
1 parent
31faf63e94
commit
606b402c2d
1 file changed
+1
@@ -49,6 +49,7 @@ public class ModClassLoader extends URLClassLoader
|
||||
public ModClassLoader(ClassLoader parent) {
|
||||
super(new URL[0], null);
|
||||
this.mainClassLoader = (LaunchClassLoader)parent;
|
||||
this.sources = new ArrayList();
|
||||
}
|
||||
|
||||
public void addFile(File modFile) throws MalformedURLException
|
||||
|
||||
Reference in new issue
Block a user