Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338268

Summary: NPE in marker validation service
Product: z_Archived Reporter: Pascal Rapicault <pascal>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: mkleint
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Pascal Rapicault CLA 2011-02-25 14:57:28 EST
Not quite sure when this is opening, but I'm getting the following NPE.
java.lang.NullPointerException: null
	at org.eclipse.m2e.editor.xml.internal.MarkerLocationService.checkVarious(MarkerLocationService.java:517) [org.eclipse.m2e.editor.xml/:na]
	at org.eclipse.m2e.editor.xml.internal.MarkerLocationService.addEditorHintMarkers(MarkerLocationService.java:215) [org.eclipse.m2e.editor.xml/:na]
	at org.eclipse.m2e.core.internal.markers.MarkerUtils.addEditorHintMarkers(MarkerUtils.java:61) [org.eclipse.m2e.core/:na]
	at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.readMavenProject(ProjectRegistryManager.java:576) [org.eclipse.m2e.core/:na]
	at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:375) [org.eclipse.m2e.core/:na]
	at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:343) [org.eclipse.m2e.core/:na]
	at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob.run(ProjectRegistryRefreshJob.java:90) [org.eclipse.m2e.core/:na]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) [org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:na]
Comment 1 Milos Kleint CLA 2011-02-28 02:09:15 EST
pascal, what version of the m2e are you using? the current codebase doesn't have code on that line. hard to tell what went wrong in the method.
Comment 2 Pascal Rapicault CLA 2011-02-28 11:42:09 EST
I can't reproduce with today's version
Comment 3 Denis Roy CLA 2021-04-19 13:26:06 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/