Trading.accept NPE
Description of the bug (be specific): Occasionally the wait condition used in Trading.accept(true) will NPE
How often the bug occurs: Rarely
Triggers of the bug (if known): Likely gets a null window state when caching the current window state
Java version: 8u111
Max Heap Size 386mb
TRiBot client version: TRiBot Release 9.401_1
Looking Glass (yes/no): yes
Operating System: Windows 8.1
Script Name: n/a
TRiBot Old-School or RS3: Old-School
Client Debug:
[13:44:06] java.lang.NullPointerException
[13:44:06] at java.util.Objects.requireNonNull(Objects.java:203)
[13:44:06] at org.tribot.api2007.Trading.getWindowState(ym:244)
[13:44:06] at org.tribot.api2007.Trading$3.active(ym:788)
[13:44:06] at org.tribot.api.Timing.waitCondition(zy:196)
[13:44:06] at org.tribot.api2007.Trading.accept(ym:493)
Bot Debug:
Screenshots (if any):