Add a null check to avoid a NullPointerException when the query returns null.

This commit is contained in:
psikoi
2018-04-06 13:29:33 +01:00
parent 2946fe37a5
commit 8b00d1385d

View File

@@ -192,7 +192,7 @@ public class RunecraftPlugin extends Plugin
);
Item[] items = queryRunner.runQuery(inventoryQuery);
degradedPouchInInventory = items.length > 0;
degradedPouchInInventory = items != null && items.length > 0;
if (degradedPouchInInventory)
{