We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60f5e0 commit 259259dCopy full SHA for 259259d
src/main/java/org/scijava/widget/WidgetModel.java
@@ -131,7 +131,9 @@ public String getWidgetLabel() {
131
* {@code style.equals(getItem().getWidgetStyle())}.
132
*/
133
public boolean isStyle(final String style) {
134
- for (final String s : getItem().getWidgetStyle().split(",")) {
+ final String widgetStyle = getItem().getWidgetStyle();
135
+ if (widgetStyle == null) return style == null;
136
+ for (final String s : widgetStyle.split(",")) {
137
if (s.equals(style)) return true;
138
}
139
return false;
0 commit comments