Fix supertype parsing to handle null superclass (Hi Object!). Closes #160
This commit is contained in:
parent
72f55cfd08
commit
424ba13bb2
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ import org.objectweb.asm.ClassReader;
|
|||
import org.objectweb.asm.Type;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
|
@ -64,7 +65,7 @@ public class ASMModParser
|
|||
{
|
||||
this.asmType = Type.getObjectType(typeQName);
|
||||
this.classVersion = classVersion;
|
||||
this.asmSuperType = Type.getObjectType(superClassQName);
|
||||
this.asmSuperType = !Strings.isNullOrEmpty(superClassQName) ? Type.getObjectType(superClassQName) : null;
|
||||
}
|
||||
|
||||
public void startClassAnnotation(String annotationName)
|
||||
|
|
Loading…
Reference in a new issue