Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-745

Illegal argument exception on tristate checkbox using stateKey binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.0.1
    • wtk
    • None
    • Windows XP SP3, JDK 1.6.0_16

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

      Attachments

        1. button.diff
          0.7 kB
          Roger Whitcomb

        Activity

          People

            Unassigned Unassigned
            whiro01 Roger Whitcomb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified