Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3113

setting int property causes NPE

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: