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

parent viewModels are not initialized by default

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If developers miss to define @Init(superclass = true) before derived viewModel class, parent viewModel gets not initialized properly, which typically causes a nasty NPE.
      Of course, this is not really a bug, but a very, very big trap! I already spent several hours to debug NPEs from junior developers, who simply missed @Init(superclass = true).
      I would suggest to provide a flag in zk.xml which effectively set @Init(superclass = true) as default.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: