kotlin.UninitializedPropertyAccessException: lateinit property expressionTypeCheckBox has not been initialized

YouTrack | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    UninitializedPropertyAccessException during extract variable

    YouTrack | 6 months ago
    kotlin.UninitializedPropertyAccessException: lateinit property expressionTypeCheckBox has not been initialized

    Root Cause Analysis

    1. kotlin.UninitializedPropertyAccessException

      lateinit property expressionTypeCheckBox has not been initialized

      at org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinVariableInplaceIntroducer.updateTitle()
    2. org.jetbrains.kotlin
      AbstractKotlinInplaceIntroducer.updateTitle
      1. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinVariableInplaceIntroducer.updateTitle(KotlinVariableInplaceIntroducer.kt:143)
      2. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinVariableInplaceIntroducer.updateTitle(KotlinVariableInplaceIntroducer.kt:47)
      3. org.jetbrains.kotlin.idea.refactoring.introduce.AbstractKotlinInplaceIntroducer.updateTitle(AbstractKotlinInplaceIntroducer.kt:96)
      4. org.jetbrains.kotlin.idea.refactoring.introduce.AbstractKotlinInplaceIntroducer.updateTitle(AbstractKotlinInplaceIntroducer.kt:36)
      4 frames
    3. IDEA
      AbstractInplaceIntroducer.startInplaceIntroduceTemplate
      1. com.intellij.refactoring.introduce.inplace.AbstractInplaceIntroducer.lambda$startInplaceIntroduceTemplate$1(AbstractInplaceIntroducer.java:228)
      2. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:122)
      3. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:100)
      4. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:86)
      5. com.intellij.refactoring.introduce.inplace.AbstractInplaceIntroducer.startInplaceIntroduceTemplate(AbstractInplaceIntroducer.java:214)
      5 frames
    4. org.jetbrains.kotlin
      ApplicationUtilsKt$executeCommand$1.run
      1. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$callback$1$2$1.invoke(KotlinIntroduceVariableHandler.kt:596)
      2. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$callback$1$2$1.invoke(KotlinIntroduceVariableHandler.kt:77)
      3. org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt$executeCommand$1.run(ApplicationUtils.kt:42)
      3 frames
    5. IDEA
      CoreCommandProcessor.executeCommand
      1. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)
      2. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:100)
      3. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:86)
      3 frames
    6. org.jetbrains.kotlin
      KotlinRefactoringUtilKt$Pass$1.pass
      1. org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt.executeCommand(ApplicationUtils.kt:42)
      2. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$callback$1$2.invoke(KotlinIntroduceVariableHandler.kt:561)
      3. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$callback$1$2.invoke(KotlinIntroduceVariableHandler.kt:77)
      4. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler.chooseApplicableComponentFunctionsForVariableDeclaration(KotlinIntroduceVariableHandler.kt:390)
      5. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler.access$chooseApplicableComponentFunctionsForVariableDeclaration(KotlinIntroduceVariableHandler.kt:77)
      6. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$callback$1.invoke(KotlinIntroduceVariableHandler.kt:537)
      7. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$callback$1.invoke(KotlinIntroduceVariableHandler.kt:77)
      8. org.jetbrains.kotlin.idea.refactoring.KotlinRefactoringUtilKt$Pass$1.pass(kotlinRefactoringUtil.kt:746)
      8 frames
    7. IDEA
      OccurrencesChooser.showChooser
      1. com.intellij.refactoring.introduce.inplace.OccurrencesChooser.showChooser(OccurrencesChooser.java:81)
      1 frame
    8. org.jetbrains.kotlin
      KotlinIntroduceVariableHandler.invoke
      1. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler.doRefactoring(KotlinIntroduceVariableHandler.kt:615)
      2. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$2.invoke(KotlinIntroduceVariableHandler.kt:703)
      3. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$6.invoke(KotlinIntroduceVariableHandler.kt:722)
      4. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$doRefactoring$6.invoke(KotlinIntroduceVariableHandler.kt:77)
      5. org.jetbrains.kotlin.idea.refactoring.KotlinRefactoringUtilKt.chooseContainerElementIfNecessary(kotlinRefactoringUtil.kt:436)
      6. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler.doRefactoring(KotlinIntroduceVariableHandler.kt:721)
      7. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$invoke$1.invoke(KotlinIntroduceVariableHandler.kt:731)
      8. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler$invoke$1.invoke(KotlinIntroduceVariableHandler.kt:77)
      9. org.jetbrains.kotlin.idea.refactoring.ElementSelectionUtilsKt.selectElement(elementSelectionUtils.kt:77)
      10. org.jetbrains.kotlin.idea.refactoring.ElementSelectionUtilsKt.selectElement(elementSelectionUtils.kt:51)
      11. org.jetbrains.kotlin.idea.refactoring.introduce.introduceVariable.KotlinIntroduceVariableHandler.invoke(KotlinIntroduceVariableHandler.kt:730)
      11 frames
    9. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:123)
      2. com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197)
      3. com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
      4. com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:156)
      5. com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:211)
      6. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:587)
      7. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$2(IdeKeyEventDispatcher.java:634)
      8. com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)
      9. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:633)
      10. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:477)
      11. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
      12. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:677)
      13. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      13 frames
    10. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames