Merge pull request #2177 from gabizou/master
Fix a possible NPE when checking supertypes of interfaces.
This commit is contained in:
commit
5670868c5e
1 changed files with 1 additions and 1 deletions
|
@ -1014,7 +1014,7 @@ public class GameData {
|
||||||
.put("minecraft:items", Item.class).build());
|
.put("minecraft:items", Item.class).build());
|
||||||
|
|
||||||
private void findSuperTypes(Class<?> type, Set<Class<?>> types) {
|
private void findSuperTypes(Class<?> type, Set<Class<?>> types) {
|
||||||
if (type == Object.class) {
|
if (type == null || type == Object.class) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
types.add(type);
|
types.add(type);
|
||||||
|
|
Loading…
Reference in a new issue