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:
Gabriel Harris-Rouquette committed 2015-11-10 11:46:49 -08:00
1 parent bc05bfda4f
commit d08cf58d80
1 file changed
+1 -1
@@ -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);