runelite-mixins: add null check for widget group in getGroup()

This commit is contained in:
Dennis de V
2018-03-16 17:14:13 -04:00
committed by Adam
parent 15ef09cd5e
commit ef02e6e316

View File

@@ -192,7 +192,7 @@ public abstract class RSClientMixin implements RSClient
{
RSWidget[][] widgets = getWidgets();
if (widgets == null || groupId < 0 || groupId >= widgets.length)
if (widgets == null || groupId < 0 || groupId >= widgets.length || widgets[groupId] == null)
{
return null;
}