NullPointer when launching Intelij with scala plugin

This workspace is Java project (no scala).

When plugin is disabled it works fine, when enabling scala plugin it doesn't run

 

2022-05-31 14:05:19,266 [   3464] SEVERE - #c.i.o.a.i.FlushQueue - null
java.lang.NullPointerException
       at org.jetbrains.plugins.scala.project.ScalaModuleSettings$.org$jetbrains$plugins$scala$project$ScalaModuleSettings$$$anonfun$forSbtBuildModule$1(ScalaModuleSettings.scala:192)
       at org.jetbrains.plugins.scala.project.ScalaModuleSettings$$anonfun$2.accept(ScalaModuleSettings.scala:191)
       at org.jetbrains.plugins.scala.project.ScalaModuleSettings$$anonfun$2.accept(ScalaModuleSettings.scala:191)
       at com.intellij.util.CommonProcessors$FindProcessor.process(CommonProcessors.java:132)
       at com.intellij.openapi.roots.impl.OrderEnumeratorBase.lambda$forEachLibrary$1(OrderEnumeratorBase.java:347)
       at com.intellij.openapi.roots.impl.OrderEnumeratorBase.processEntries(OrderEnumeratorBase.java:310)
       at com.intellij.openapi.roots.impl.ModuleOrderEnumerator.forEach(ModuleOrderEnumerator.java:33)
       at com.intellij.openapi.roots.impl.OrderEnumeratorBase.forEachLibrary(OrderEnumeratorBase.java:343)
       at com.intellij.openapi.roots.impl.ModuleOrderEnumerator.forEachLibrary(ModuleOrderEnumerator.java:17)
       at org.jetbrains.plugins.scala.project.ScalaModuleSettings$.forSbtBuildModule(ScalaModuleSettings.scala:195)
       at org.jetbrains.plugins.scala.project.ScalaModuleSettings$.apply(ScalaModuleSettings.scala:163)
       at org.jetbrains.plugins.scala.project.package$ModuleExt$.scalaModuleSettings$extension(package.scala:106)
       at org.jetbrains.plugins.scala.project.package$ModuleExt$.hasScala$extension(package.scala:114)
       at org.jetbrains.plugins.scala.project.package$ProjectExt$.$anonfun$modulesWithScalaCached$7(package.scala:345)
       at org.jetbrains.plugins.scala.project.package$ProjectExt$.$anonfun$modulesWithScalaCached$7$adapted(package.scala:345)
       at scala.collection.StrictOptimizedIterableOps.filterImpl(StrictOptimizedIterableOps.scala:227)
       at scala.collection.StrictOptimizedIterableOps.filterImpl$(StrictOptimizedIterableOps.scala:222)
       at scala.collection.immutable.ArraySeq.filterImpl(ArraySeq.scala:35)
       at scala.collection.StrictOptimizedIterableOps.filter(StrictOptimizedIterableOps.scala:218)
       at scala.collection.StrictOptimizedIterableOps.filter$(StrictOptimizedIterableOps.scala:218)
       at scala.collection.immutable.ArraySeq.filter(ArraySeq.scala:35)
       at org.jetbrains.plugins.scala.project.package$ProjectExt$.$anonfun$modulesWithScalaCached$6(package.scala:345)
       at org.jetbrains.plugins.scala.util.UIFreezingGuard$.withResponsibleUI(UIFreezingGuard.scala:69)
       at org.jetbrains.plugins.scala.project.package$ProjectExt$.modulesWithScalaCached$extension(package.scala:345)
       at org.jetbrains.plugins.scala.project.package$ProjectExt$.modulesWithScala$extension(package.scala:340)
       at org.jetbrains.plugins.scala.project.package$ProjectExt$.hasScala$extension(package.scala:329)
       at org.jetbrains.plugins.scala.components.TypeAwareWidgetFactory.isAvailable(TypeAwareWidgetFactory.scala:27)
       at com.intellij.openapi.wm.impl.status.widget.StatusBarWidgetsManager.updateWidget(StatusBarWidgetsManager.java:90)
       at com.intellij.openapi.wm.impl.status.widget.StatusBarWidgetsManager.updateAllWidgets(StatusBarWidgetsManager.java:64)
       at com.intellij.openapi.wm.impl.status.widget.StatusBarWidgetsManager.installPendingWidgets(StatusBarWidgetsManager.java:215)
       at com.intellij.openapi.wm.impl.ProjectFrameHelper.installDefaultProjectStatusBarWidgets(ProjectFrameHelper.java:412)
       at com.intellij.openapi.wm.impl.ProjectFrameHelper.setProject(ProjectFrameHelper.java:395)
       at com.intellij.openapi.wm.impl.WindowManagerImpl.assignFrame(WindowManagerImpl.kt:286)
       at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$projectLoaded$1.run(ProjectFrameAllocator.kt:174)
       at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
       at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
       at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
       at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
       at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
       at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
       at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
       at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
       at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
       at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
       at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
       at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
       at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
       at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
       at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
       at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
       at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
       at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
       at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
       at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
       at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
       at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
       at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2022-05-31 14:05:19,272 [   3470] SEVERE - #c.i.o.a.i.FlushQueue - IntelliJ IDEA 2022.1.1  Build #IC-221.5591.52
2022-05-31 14:05:19,275 [   3473] SEVERE - #c.i.o.a.i.FlushQueue - JDK: 11.0.14.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-05-31 14:05:19,275 [   3473] SEVERE - #c.i.o.a.i.FlushQueue - OS: Linux
2022-05-31 14:05:19,276 [   3474] SEVERE - #c.i.o.a.i.FlushQueue - Plugin to blame: Scala version: 2022.1.15
2022-05-31 14:05:19,496 [   3694] SEVERE - #c.i.o.p.i.ProjectFrameAllocator - java.lang.NullPointerException

请先登录再写评论。