wiki: don't throw when trying to optarget skills

This commit is contained in:
Max Weber
2020-10-01 01:21:24 -06:00
committed by Adam
parent f52eeaf4d3
commit de8afadac9

View File

@@ -390,7 +390,7 @@ public class WikiPlugin extends Plugin
if (WidgetInfo.TO_GROUP(widgetID) == WidgetInfo.SKILLS_CONTAINER.getGroupId())
{
Widget w = getWidget(widgetID, widgetIndex);
if (w.getParentId() != WidgetInfo.SKILLS_CONTAINER.getId())
if (w.getActions() == null || w.getParentId() != WidgetInfo.SKILLS_CONTAINER.getId())
{
return;
}