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

jetbrains.com | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Testing custom inspection plugin – JetBrains Support

    jetbrains.com | 8 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