mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Merge pull request #2177 from gabizou/master
Fix a possible NPE when checking supertypes of interfaces.
This commit is contained in:
commit
5670868c5e
1 file changed
+1
-1
@@ -1014,7 +1014,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);
|
||||
|
||||
Reference in new issue
Block a user