Fix #730 Crash with corrupted forestry leaves from MFR harvester

This commit is contained in:
mezz committed 2015-06-20 20:38:01 -07:00
1 parent 9d1d1b9ef1
commit 8ef193c8a5
1 file changed
+5 -1
@@ -328,7 +328,11 @@ public class TileLeaves extends TileTreeContainer implements IPollinatable, IFru
}
public String getUnlocalizedName() {
return getTree().getGenome().getPrimary().getUnlocalizedName();
ITree tree = getTree();
if (tree == null) {
return "for.leaves.corrupted";
}
return tree.getGenome().getPrimary().getUnlocalizedName();
}
/* NETWORK */