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 2015-11-10 11:46:49 -08:00
parent bc05bfda4f
commit d08cf58d80
No known key found for this signature in database
GPG key ID: 2B0AA750A06DAA6A

View file

@ -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);