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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 7.0.0, 6.5.5
    • Component/s: General
    • None
    • 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; }

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

              Created:
              Updated: