Bug 498413 - NullPointerException in DropDownMergeMenuAction.setTextAndImage
Summary: NullPointerException in DropDownMergeMenuAction.setTextAndImage
Status: UNCONFIRMED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-25 04:14 EDT by EPP Error Reports CLA
Modified: 2016-08-05 11:21 EDT (History)
2 users (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 2016-07-25 04:14:37 EDT
The following problem was reported via the automated error reporting:

Message: HIDDEN
java.lang.NullPointerException: HIDDEN
    at org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.actions.DropDownMergeMenuAction.setTextAndImage(DropDownMergeMenuAction.java:138)
    at org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.actions.DropDownMergeMenuAction.<init>(DropDownMergeMenuAction.java:63)
    at org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.CompareToolBar.initToolbar(CompareToolBar.java:129)
    at org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.EMFCompareStructureMergeViewer$7.run(EMFCompareStructureMergeViewer.java:377)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:162)
    at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:154)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4155)



Bundles:
| org.eclipse.emf | 2.6.0.v20150806-0404 | 2.6.0.v20150806-0404 |
| org.eclipse.emf.compare | 3.2.0.201509120604 | 3.2.0.201509120604 |
| org.eclipse.emf.compare.ide | 3.2.1.201509120604 | 3.2.1.201509120604 |
| org.eclipse.emf.compare.ide.ui | 4.1.1.201509120604 | 4.1.1.201509120604 |
| org.eclipse.swt | 3.104.1.v20150825-0743 | 3.104.2.v20160212-1350 |
| org.eclipse.ui | 3.107.0.v20150507-1945 | 3.107.0.v20150507-1945 |

Operating Systems:
| Windows | 6.1.0 | 6.1.0 |


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

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


Created on behalf of laurent.goubet@xxxxxx.xxx
Comment 1 Laurent Goubet CLA 2016-07-25 04:15:39 EDT
There is indeed a chance for the compare configuration properties to be null, we might want to check our uses to protect the code and log a meaningful exception.
Comment 2 Laurent Delaigue CLA 2016-08-05 11:21:25 EDT
It would be nice to understand how this happens though, because a preliminary examination of the code gave me no clue. I can't find out how the mergePreviewMode can be null, os it may hide a larger issue...