Exception when running a test: NPE: Cannot invoke LocalInspectionToolWrapper.getTool() because toolWrapper is null

I’m trying to run a test on 2025.3 EAP and I get the following exception:

 java.lang.NullPointerException: Cannot invoke "com.intellij.codeInspection.ex.LocalInspectionToolWrapper.getTool()" because "toolWrapper" is null
            at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.createHighlightsForDescriptor(LocalInspectionsPass.java:261)
            at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$collectInformationWithProgress$1(LocalInspectionsPass.java:123)
            at com.intellij.codeInsight.daemon.impl.InspectionRunner$InspectionProblemHolder.reportAddedDescriptors(InspectionRunner.java:632)
            at com.intellij.codeInsight.daemon.impl.InspectionRunner$InspectionProblemHolder.visitElement(InspectionRunner.java:617)
            at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processContext$19(InspectionRunner.java:416)
            at com.intellij.codeInsight.daemon.impl.InspectionVisitorOptimizer.acceptElements(InspectionVisitorOptimizer.java:208)
            at com.intellij.codeInsight.daemon.impl.InspectionRunner.processContext(InspectionRunner.java:414)

See Removing no-longer supported Grazie Pro · asciidoctor/asciidoctor-intellij-plugin@064c307 · GitHub for the full build log.

The test: asciidoctor-intellij-plugin/src/test/java/org/asciidoc/intellij/inspections/AsciiDocGrammarInspectionTest.java at remove-grazie-pro · ahus1/asciidoctor-intellij-plugin · GitHub

Version: 253.25908.13

Any ideas? Thanks!

does the test work when “structural search” inspections are removed from the test inspection profile?