java.lang.IllegalArgumentException: Argument for @NotNull parameter 'refClass' of com/intellij/psi/impl/source/codeStyle/JavaCodeStyleManagerImpl.addImport must not be null

jetbrains.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Testing custom inspection plugin – JetBrains Support

    jetbrains.com | 7 months ago
    java.lang.IllegalArgumentException: Argument for @NotNull parameter 'refClass' of com/intellij/psi/impl/source/codeStyle/JavaCodeStyleManagerImpl.addImport must not be null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Argument for @NotNull parameter 'refClass' of com/intellij/psi/impl/source/codeStyle/JavaCodeStyleManagerImpl.addImport must not be null

      at com.intellij.psi.impl.source.codeStyle.JavaCodeStyleManagerImpl.addImport()
    2. IDEA
      QuickFixWrapper.invoke
      1. com.intellij.psi.impl.source.codeStyle.JavaCodeStyleManagerImpl.addImport(JavaCodeStyleManagerImpl.java)
      2. com.intellij.codeInspection.MyInspection$MyQuickFix.applyFix(MyInspection.java:124)
      3. com.intellij.codeInspection.MyInspection$MyQuickFix.applyFix(MyInspection.java:99)
      4. com.intellij.codeInspection.ex.QuickFixWrapper.invoke(QuickFixWrapper.java:86)
      4 frames