Bug 527312 - NullPointerException in Markers.getMarkerItem
Summary: NullPointerException in Markers.getMarkerItem
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.8 M7   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 16:20 EST by EPP Error Reports CLA
Modified: 2020-12-10 12:38 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2017-11-15 16:20:27 EST
The following problem was reported via the automated error reporting:

Message: Unhandled event loop exception
java.lang.NullPointerException: null
    at org.eclipse.ui.internal.views.markers.Markers.getMarkerItem(Markers.java:340)
    at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.setSelection(ExtendedMarkersView.java:1321)
    at org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities.showMarker(MarkerSupportInternalUtilities.java:369)
    at org.eclipse.ui.views.markers.MarkerViewUtil.showMarker(MarkerViewUtil.java:98)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.updateMarkerViews(AbstractDecoratedTextEditor.java:2214)
    at org.eclipse.cdt.internal.ui.editor.CEditor.updateStatusLine(CEditor.java:2631)
    at org.eclipse.cdt.internal.ui.editor.CEditor.selectionChanged(CEditor.java:1805)
    at org.eclipse.cdt.internal.ui.editor.CEditor$EditorSelectionChangedListener.selectionChanged(CEditor.java:864)
    at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2751)
    at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2699)
    at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2678)
    at org.eclipse.swt.widgets.Display.runTimer(Display.java:4281)
    at org.eclipse.swt.widgets.Display.messageProc(Display.java:3368)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(OS.java:-2)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767)



Bundles:
| org.eclipse.cdt.ui | 5.11.0.201509131935 | 6.2.0.201709131603 |
| org.eclipse.core.commands | 3.8.0.v20160316-1921 | 3.8.0.v20160316-1921 |
| org.eclipse.dltk.ui | 5.4.0.201602110510 | 5.7.0.201610180416 |
| org.eclipse.e4.core.di | 1.6.1.v20160712-0927 | 1.6.1.v20160712-0927 |
| org.eclipse.jdt.ui | 3.11.1.v20150827-1306 | 3.13.50.v20170929-1653 |
| org.eclipse.jface | 3.12.0.v20160518-1929 | 3.12.2.v20170113-2113 |
| org.eclipse.jface.text | 3.10.0.v20150603-1752 | 3.12.0.v20170523-1043 |
| org.eclipse.ltk.ui.refactoring | 3.8.0.v20160518-1817 | 3.8.0.v20160518-1817 |
| org.eclipse.search | 3.11.0.v20160519-1501 | 3.11.0.v20160519-1501 |
| org.eclipse.swt | 3.104.1.v20150825-0743 | 3.106.1.v20170926-0519 |
| org.eclipse.ui | 3.107.0.v20150507-1945 | 3.109.0.v20170411-1742 |
| org.eclipse.ui.views | 3.8.0.v20150422-0725 | 3.9.0.v20170226-1833 |
| org.eclipse.wst.jsdt.ui | 1.1.601.v201512010225 | 2.0.200.v201612151739 |
| org.eclipse.xtext.ui | 2.10.0.v201605250459 | 2.10.0.v201605250459 |

Operating Systems:
| Linux | 2.6.32 | 4.11.11.fc26 |
| MacOSX | 10.11.1 | 10.12.3 |
| Windows | 6.1.0 | 10.0.0 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/5592986be4b08735226b3014 for the latest data.

Thank you for your assistance.
 Your friendly error-reports-inbox.


Created on behalf of Karsten Thoms
Comment 1 Karsten Thoms CLA 2017-11-15 16:31:44 EST
The stacktrace indicates that markerToEntryMap is null when calling put().

The map is created in this method, so this can only happen when the map was nulled by a concurrent call. This can only happen by a call of updateWithNewMarkers
Comment 2 Eclipse Genie CLA 2017-11-15 16:33:47 EST
New Gerrit change created: https://git.eclipse.org/r/111667