mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
fix NPE
This commit is contained in:
parent
dab750f3b6
commit
735aadbab4
@ -285,12 +285,14 @@ public class ClassFile {
|
||||
|
||||
/**
|
||||
* Get the type of class.
|
||||
*
|
||||
* @return the type of the class
|
||||
*/
|
||||
public Type getType() {
|
||||
if( (accessFlags & 0x0200) > 0 ) {
|
||||
return Type.Interface;
|
||||
}
|
||||
if( superClass.getName().equals( "java/lang/Enum" ) ) {
|
||||
if( superClass != null && superClass.getName().equals( "java/lang/Enum" ) ) {
|
||||
return Type.Enum;
|
||||
}
|
||||
return Type.Class;
|
||||
|
Loading…
x
Reference in New Issue
Block a user