Fix supertype parsing to handle null superclass (Hi Object!). Closes #160

This commit is contained in:
Christian 2013-03-10 01:20:08 -05:00
parent 72f55cfd08
commit 424ba13bb2
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import org.objectweb.asm.ClassReader;
import org.objectweb.asm.Type; import org.objectweb.asm.Type;
import com.google.common.base.Objects; import com.google.common.base.Objects;
import com.google.common.base.Strings;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.FMLLog;
@ -64,7 +65,7 @@ public class ASMModParser
{ {
this.asmType = Type.getObjectType(typeQName); this.asmType = Type.getObjectType(typeQName);
this.classVersion = classVersion; this.classVersion = classVersion;
this.asmSuperType = Type.getObjectType(superClassQName); this.asmSuperType = !Strings.isNullOrEmpty(superClassQName) ? Type.getObjectType(superClassQName) : null;
} }
public void startClassAnnotation(String annotationName) public void startClassAnnotation(String annotationName)