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

Inefficient code in org.zkoss.zk.ui.select.impl.ComponentLocalProperties.matchValue(Object, Attribute)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.0, 6.5.5
    • General
    • None

      When attr is org.zkoss.zk.ui.select.impl.Attribute.Operator.EQUAL and value is null you will get NullPointerException in default block. This leads to very inefficient selector code when there are lots of components.
      Suggested fix. Add:
      if (value == null)

      { return false; }

            Unassigned Unassigned
            timedevourer timedevourer
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: