Fix NPE when no FMLAT is defined

This commit is contained in:
cpw committed 2014-06-25 09:11:07 -04:00
1 parent 8a240ec3c7
commit 0cd5ef6bb7
2 files changed
+2 -1

No files matched your search

@@ -110,6 +110,7 @@ public class AccessTransformer implements IClassTransformer
{
Manifest manifest = jar.getManifest();
String atList = manifest.getMainAttributes().getValue("FMLAT");
if (atList == null) return;
for (String at : atList.split(" "))
{
JarEntry jarEntry = jar.getJarEntry("META-INF/"+at);
@@ -243,7 +243,7 @@ public class CoreModManager {
jar = new JarFile(coreMod);
if (jar.getManifest() == null)
{
// Not a coremod
// Not a coremod and no access transformer list
continue;
}
ModAccessTransformer.addJar(jar);