Skip to content

KSP version 2.3.5 CI error exception that does not break build checks #2763

Closed

Description

@droideveloper
  • ci is GitHub actions
    Error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "ksp.com.intellij.openapi.application.Application.getService(java.lang.Class)" because the return value of "ksp.com.intellij.openapi.application.ApplicationManager.getApplication()" is null presented in my builds

extra: I could re-produce on local environments where I just execute build command via command line without IntelliJ idea open, I believe it would produce same error non intelliJ enviroments too.

Activity

  1. rjaros commented on Feb 1, 2026

    @rjaros

    I see this as well in my project. Full stacktrace:

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "ksp.com.intellij.openapi.application.Application.getService(java.lang.Class)" because the return value of "ksp.com.intellij.openapi.application.ApplicationManager.getApplication()" is null
            at ksp.com.intellij.openapi.fileEditor.FileDocumentManager.getInstance(FileDocumentManager.java:35)
            at ksp.com.intellij.openapi.fileTypes.BinaryFileTypeDecompilers.lambda$notifyDecompilerSetChange$1(BinaryFileTypeDecompilers.java:29)
            at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
            at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
            at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
            at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
            at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
            at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
            at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
            at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
            at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
            at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
            at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
    
    
  2. DarioAhdoot commented on Feb 2, 2026

    @DarioAhdoot

    Getting the exact same error

  3. perronemirko commented on Feb 4, 2026

    @perronemirko

    I am having the same problem, It might be smtg related to kotlin version or its way on handling threads.

  4. TWiStErRob commented on Feb 4, 2026

    @TWiStErRob

    Got the same while running a test in an Android library module in Android Studio.

  5. suntrix commented on Feb 5, 2026

    @suntrix

    Getting same error

  6. ZacSweers commented on Feb 8, 2026

    @ZacSweers
    Contributor

    I'm able to reproduce it somewhat consistently in https://github.com/zacsweers/catchup, just run ./gradlew :app-scaffold:compileReleaseKotlin

  7. hfmehmed commented on Feb 10, 2026

    @hfmehmed
    Collaborator

    @ZacSweers I wasnt able to repro with a clean clone of that project. Is it specific branch i need to pull?

  8. hfmehmed commented on Feb 10, 2026

    @hfmehmed
    Collaborator

    I also tried with another project where i can see the exception in the CI logs, but when running locally the same exception is not there. Seems to be environment specific issue potentially

  9. droideveloper commented on Feb 10, 2026

    @droideveloper
    Author

    I also tried with another project where i can see the exception in the CI logs, but when running locally the same exception is not there. Seems to be environment specific issue potentially

    well I could create in locally if I use only terminal (no android studio or IntelliJ idea open) which is Mac osx and CI where it is lunix based, looks like when there is no idea open this shows up

  10. hfmehmed commented on Feb 10, 2026

    @hfmehmed
    Collaborator

    Update: we managed to reproduce (thanks to @jaschdoc) and we are looking at the problem. It seems to have happened after the upgrade of kotlin analysis api version

  11. 10 remaining items

  12. added a commit that references this issue on Sep 20, 2026
  13. added a commit that references this issue on Nov 8, 2026
    3d2971d
  14. added a commit that references this issue on Nov 12, 2026
    75c4d01
  15. added a commit that references this issue on Nov 17, 2026
    4e86be0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions