Skip to content
  • Grisha Kruglov's avatar
    Closes #9561: Fix initialization order in HomeMenu · 60943df6
    Grisha Kruglov authored
    `init` blocks are executed before `val` initialization which is declared afterwards
    in the class. In this case, we had `quitItem` and `reconnectToSyncItem` as lazy,
    but declared after the `init` block which may need them. And so, while this compiles
    just fine, in practice we run into an NPE as the `init` block tries to get the lazy's value.
    
    Simply re-ordering initialization fixes the problem.
    60943df6