pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Whitcomb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIVOT-745) Illegal argument exception on tristate checkbox using stateKey binding
Date Wed, 18 May 2011 21:24:47 GMT
Illegal argument exception on tristate checkbox using stateKey binding
----------------------------------------------------------------------

                 Key: PIVOT-745
                 URL: https://issues.apache.org/jira/browse/PIVOT-745
             Project: Pivot
          Issue Type: Bug
          Components: wtk
    Affects Versions: 2.0.1
         Environment: Windows XP SP3, JDK 1.6.0_16
            Reporter: Roger Whitcomb
            Priority: Minor
             Fix For: 2.0.1


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".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message