mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 09:16:20 +02:00
Merge pull request #462 from xuri02/patch-1
Add null check before calling tree.close();
This commit is contained in:
commit
f543de8e4c
@ -113,8 +113,12 @@ public final class TreeBotHack extends Hack
|
||||
angleFinder = null;
|
||||
processor = null;
|
||||
|
||||
tree.close();
|
||||
tree = null;
|
||||
|
||||
if(tree != null)
|
||||
{
|
||||
tree.close();
|
||||
tree = null;
|
||||
}
|
||||
|
||||
if(currentBlock != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user