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

Cloning a paging mold Tree by serialization throws NPE

XMLWordPrintable

    • None

      Steps to Reproduce

      http://zkfiddle.org/sample/1bubpl7/1-Paging-Tree-clone-by-serialization-NPE

      • click "Click me shouldn't have any error."

      Current Result

      NPE

      Expected Result

      No NPE

      Debug Information

      https://github.com/zkoss/zk/blob/v8.0.0/zul/src/org/zkoss/zul/AbstractTreeModel.java#L70
      A transient _pagingListeners need to create a new instance when cloned.

      Workaround

      1. Set mold as default before cloning.
      2. Just using org.zkoss.zk.ui.Component#clone

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                3h