Try and avoid an NPE in crash reports
This commit is contained in:
parent
3599c11599
commit
5b4de7b2b5
1 changed files with 2 additions and 2 deletions
|
@ -427,7 +427,7 @@ public class Loader
|
|||
|
||||
public List<ModContainer> getModList()
|
||||
{
|
||||
return ImmutableList.copyOf(instance().mods);
|
||||
return instance().mods != null ? ImmutableList.copyOf(instance().mods) : ImmutableList.<ModContainer>of();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -663,7 +663,7 @@ public class Loader
|
|||
|
||||
public List<ModContainer> getActiveModList()
|
||||
{
|
||||
return modController.getActiveModList();
|
||||
return modController != null ? modController.getActiveModList() : ImmutableList.<ModContainer>of();
|
||||
}
|
||||
|
||||
public ModState getModState(ModContainer selectedMod)
|
||||
|
|
Loading…
Reference in a new issue