Fix potential NPE when changing opcode types from the dropdown menu
@@ -180,6 +180,7 @@ public class ReflectiveOpcodeSheet extends ReflectivePropertySheet {
}
}
combo.valueProperty().addListener((obv, old, cur) -> {
+ if (cur != null)
item.setValue(OpcodeUtil.nameToOpcode(cur));
});
return combo;
