0
0
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:
Alexander01998 2021-08-19 16:21:15 +02:00 committed by GitHub
commit f543de8e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{