Skip to content

Commit

Permalink
Attempts to fix NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
kolinkrewinkel committed Sep 22, 2013
1 parent 1f853e5 commit 5f5da48
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public void save(EntityData inData)
{
try
{
if(this.m_config == null || this.m_configFile == null)
{
if(!this.loadConfig())
return;
this.loadConfig();

if(this.m_config.getList("entities") == null) {
this.m_config.set("entities", new ArrayList<EntityData>());
}

((List<EntityData>)this.m_config.getList("entities")).add(inData);
Expand Down

0 comments on commit 5f5da48

Please sign in to comment.