mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix possible NPE when calling Loader.getIndexedModList #4919
This commit is contained in:
1 parent
4f294da799
commit
789d9437b2
1 file changed
+1
-1
@@ -744,7 +744,7 @@ public class Loader
|
||||
|
||||
public Map<String,ModContainer> getIndexedModList()
|
||||
{
|
||||
return ImmutableMap.copyOf(namedMods);
|
||||
return namedMods != null ? ImmutableMap.copyOf(namedMods) : ImmutableMap.of();
|
||||
}
|
||||
|
||||
public void initializeMods()
|
||||
|
||||
Reference in new issue
Block a user