Fix a possible NPE when checking supertypes of interfaces. Closes #2176.
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
This commit is contained in:
parent
bc05bfda4f
commit
d08cf58d80
1 changed files with 1 additions and 1 deletions
|
@ -1010,7 +1010,7 @@ public class GameData {
|
|||
.put("minecraft:items", Item.class).build());
|
||||
|
||||
private void findSuperTypes(Class<?> type, Set<Class<?>> types) {
|
||||
if (type == Object.class) {
|
||||
if (type == null || type == Object.class) {
|
||||
return;
|
||||
}
|
||||
types.add(type);
|
||||
|
|
Loading…
Reference in a new issue