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

Cloning a paging mold Tree by serialization throws NPE

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.0
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
      None

      Description

      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

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: