Details
Description
Button.store on a tristate checkbox using "stateKey" binding gets an error:
java.lang.IllegalArgumentException: path is null.
at org.apache.pivot.json.JSON.parse(JSON.java:259)
at org.apache.pivot.json.JSON.put(JSON.java:137)
at org.apache.pivot.wtk.Button.store(Button.java:772)
Due to the following code:
if (stateKey != null
&& stateBindType != BindType.LOAD) {
JSON.put(context, selectedKey, (stateBindMapping == null) ?
The put should be using "stateKey" not "selectedKey".