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

setting int property causes NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.2
    • 8.0.1
    • Databind 2
    • Security Level: Jimmy

      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.

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

              Created:
              Updated:
              Resolved: