Fix some null warnings

This commit is contained in:
mezz committed 2016-10-20 23:51:14 -07:00
1 parent c6783e573c
commit 3178aa890d
22 files changed
+114 -95

No files matched your search

@@ -31,7 +31,10 @@ public class ControlBiomes extends Control implements ITooltip {
final int y = (int) (this.getRelativeMousePosition().y() / 16.0f);
final int i = x + y * 8;
if (i < this.tolerated.size()) {
list.add(Biome.getBiome(this.tolerated.get(i)).getBiomeName());
Biome biome = Biome.getBiome(this.tolerated.get(i));
if (biome != null) {
list.add(biome.getBiomeName());
}
}
}