Fix possible NPE when calling Loader.getIndexedModList #4919

This commit is contained in:
mezz 2018-05-09 22:40:14 -07:00
parent 4f294da799
commit 789d9437b2
1 changed files with 1 additions and 1 deletions

View File

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