Skip to content

Commit

Permalink
Fix null-pointer crashes from #36 and #35
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Jun 20, 2019
1 parent 120c4a6 commit fb9ce0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ public int compareTo(BiomesObject object)
{
int rc = Integer.compare(this.order, object.getOrder());

return rc == 0 ? this.biome.compareTo(object.getBiome()) : rc;
return this.biome != null && object.getBiome() != null && rc == 0 ?
this.biome.compareTo(object.getBiome()) : rc;
}


Expand Down

0 comments on commit fb9ce0e

Please sign in to comment.