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

parent viewModels are not initialized by default

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated: