setting int property causes NPE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 8.0.2
    • Affects Version/s: 8.0.1
    • Component/s: Databind 2
    • Security Level: Jimmy
    • None

      an EL expression applied to a setter of type int automatically coerced a NULL value into a ZERO in ZK 7.
      In ZK 8 some int component properties now have an IntegerPropertyAccess wrapping the int value. This affects NULL coercion, leading to NullPointerExceptions when NULL value is attempted to be applied to the real setter, which accepts only int, (and not Integer)

      The attachment null-in-el-simple.zul show this problem in a simplified scenario.
      The integer property could be dynamic in a more complex scenario.

            Assignee:
            SEFI
            Reporter:
            cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: