Skip to content

NPE showing up in Eclipse #1570

Closed
Closed

Description

@martinlippert

Checking the latest snapshot builds on Eclipse, I see this error showing up in the Error Log view:

java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.IClasspathEntry.getPath()" because the return value of "org.springframework.tooling.jdt.ls.commons.classpath.ClasspathUtil.getJreContainer(org.eclipse.jdt.core.IClasspathEntry[])" is null
	at org.springframework.tooling.jdt.ls.commons.classpath.ClasspathUtil.resolve(ClasspathUtil.java:97)
	at org.springframework.tooling.jdt.ls.commons.classpath.SendClasspathNotificationsJob.run(SendClasspathNotificationsJob.java:130)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Activity

  1. added this to the 4.31.0.RELEASE milestone on Jun 2, 2025
  2. added
    for: eclipse
    on Jun 2, 2025
  3. BoykoAlex commented on Jun 2, 2025

    @BoykoAlex
    Contributor

    This looks like a regular NPE occurring when project's pom has changed and classpath is recomputed. Fixed via 28617ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsetype: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions