Bug 463266 - NullPointerException in UMLModelElement.getContentProvider (168)
Summary: NullPointerException in UMLModelElement.getContentProvider (168)
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Views (show other bugs)
Version: 1.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Camille Letavernier CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-27 05:10 EDT by EPP Error Reports CLA
Modified: 2017-09-08 09:58 EDT (History)
4 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 2015-03-27 05:10:32 EDT
Note from Camille: in some cases (to be identified), the editing domain can be null. Thus, we can't use it to find the resource set. It may be related to how the UML-RT Model Element extends the UML one (So maybe the bug only occurs in the UML-RT context). So we may have to fix two things: how UML ME handles null domain, and ensure that UML-RT doesn't provide null EditingDomain (As much as possible)

The following incident was reported via the automated error reporting:


    code:                   0
    plugin:                 org.eclipse.papyrus.views.properties_1.1.0.201503251607
    message:                Unexpected Error
    fingerprint:            75926f8d
    exception class:        java.lang.NullPointerException
    exception message:      -
    number of children:     0
    
    java.lang.NullPointerException: null
    at org.eclipse.papyrus.uml.properties.modelelement.UMLModelElement.getContentProvider(UMLModelElement.java:168)
    at org.eclipse.papyrus.umlrt.properties.modelelement.UMLRTExtModelElement.getContentProvider(UMLRTExtModelElement.java:70)
    at org.eclipse.papyrus.views.properties.modelelement.DataSource.doGetContentProvider(DataSource.java:197)
    at org.eclipse.papyrus.views.properties.modelelement.DataSource$1Delegator.createDelegate(DataSource.java:178)
    at org.eclipse.papyrus.views.properties.modelelement.DataSource$1Delegator.<init>(DataSource.java:157)
    at org.eclipse.papyrus.views.properties.modelelement.DataSource.getContentProvider(DataSource.java:187)
    at org.eclipse.papyrus.views.properties.widgets.MultiReference.doBinding(MultiReference.java:68)
    at org.eclipse.papyrus.views.properties.widgets.AbstractPropertyEditor.checkInput(AbstractPropertyEditor.java:176)
    at org.eclipse.papyrus.views.properties.widgets.AbstractPropertyEditor.setProperty(AbstractPropertyEditor.java:268)
    at sun.reflect.GeneratedMethodAccessor73.invoke(null:-1)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.xwt.javabean.metadata.properties.BeanProperty.setValue(BeanProperty.java:91)
    at org.eclipse.xwt.javabean.ResourceLoader.initSegmentAttribute(ResourceLoader.java:1783)
    at org.eclipse.xwt.javabean.ResourceLoader.initAttribute(ResourceLoader.java:1538)
    at org.eclipse.xwt.javabean.ResourceLoader.init(ResourceLoader.java:1141)
    at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:669)
    at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:705)
    at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:705)
    at org.eclipse.xwt.javabean.ResourceLoader.createUIElement(ResourceLoader.java:366)
    at org.eclipse.xwt.internal.core.Core.createCLRElement(Core.java:630)
    at org.eclipse.xwt.internal.core.Core.load(Core.java:772)
    at org.eclipse.xwt.internal.core.Core.load(Core.java:660)
    at org.eclipse.xwt.XWTLoader.loadWithOptions(XWTLoader.java:1072)
    at org.eclipse.xwt.XWT.loadWithOptions(XWT.java:623)
    at org.eclipse.papyrus.views.properties.runtime.DefaultDisplayEngine.createSection(DefaultDisplayEngine.java:308)
    at org.eclipse.papyrus.views.properties.runtime.DefaultDisplayEngine.createSection(DefaultDisplayEngine.java:214)
    at org.eclipse.papyrus.views.properties.xwt.XWTSection.display(XWTSection.java:159)
    at org.eclipse.papyrus.views.properties.xwt.XWTSection.refresh(XWTSection.java:170)
    at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(TabContents.java:217)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
    at org.eclipse.ui.views.properties.tabbed.TabContents.refresh(TabContents.java:220)
    at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:222)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2197)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1228)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1257)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)
    at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:408)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4200)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyList.select(TabbedPropertyList.java:864)
    at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyViewer.setSelectionToWidget(TabbedPropertyViewer.java:122)
    at org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget(StructuredViewer.java:1775)
    at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1731)
    at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:388)
    at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.setInput(TabbedPropertySheetPage.java:748)
    at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.selectionChanged(TabbedPropertySheetPage.java:556)
    at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:335)
    at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:237)
    at org.eclipse.ui.internal.e4.compatibility.SelectionService.handlePostSelectionChanged(SelectionService.java:122)
    at org.eclipse.ui.internal.e4.compatibility.SelectionService.access$1(SelectionService.java:112)
    at org.eclipse.ui.internal.e4.compatibility.SelectionService$3.selectionChanged(SelectionService.java:80)
    at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$4.run(SelectionAggregator.java:166)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyPostListeners(SelectionAggregator.java:163)
    at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$8(SelectionAggregator.java:160)
    at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8$1.run(SelectionAggregator.java:272)
    at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56)
    at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8.changed(SelectionAggregator.java:269)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:110)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:338)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:352)
    at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setPostSelection(SelectionServiceImpl.java:36)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart$3.selectionChanged(CompatibilityPart.java:130)
    at org.eclipse.ui.part.PageBookView$SelectionManager$1.run(PageBookView.java:263)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.part.PageBookView$SelectionManager.selectionChanged(PageBookView.java:260)
    at org.eclipse.ui.part.PageBookView$SelectionProvider.postSelectionChanged(PageBookView.java:340)
    at org.eclipse.ui.part.PageBookView.postSelectionChanged(PageBookView.java:949)
    at org.eclipse.ui.part.PageBookView.access$3(PageBookView.java:944)
    at org.eclipse.ui.part.PageBookView$3.selectionChanged(PageBookView.java:179)
    at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:877)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
    at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:874)
    at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1243)
    at org.eclipse.ui.navigator.CommonViewer.handlePostSelect(CommonViewer.java:455)
    at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1269)
    at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:265)
    at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:259)
    at org.eclipse.jface.util.OpenStrategy$1$2.run(OpenStrategy.java:440)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3994)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3671)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:648)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:592)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
   
  

General Information:

    reported-by:      Charles Rivet
    anonymous-id:     80c2a7b7-ec00-4efe-952d-98c20916bd85
    eclipse-build-id: 4.5.0.I20150203-1300
    eclipse-product:  org.eclipse.epp.package.modeling.product
    operating system: MacOSX 10.10.2 (x86_64) - cocoa
    jre-version:      1.7.0_15-b03

The following plug-ins were present on the execution stack (*):
    1. org.eclipse.core.databinding.observable_1.4.1.v20140910-2107
    2. org.eclipse.core.databinding_1.4.100.v20141002-1314
    3. org.eclipse.core.runtime_3.10.0.v20150112-1422
    4. org.eclipse.e4.core.contexts_1.3.100.v20140407-1019
    5. org.eclipse.e4.ui.workbench_1.3.0.v20150113-2327
    6. org.eclipse.e4.ui.workbench.swt_0.12.100.v20150114-0905
    7. org.eclipse.equinox.app_1.3.200.v20130910-1609
    8. org.eclipse.equinox.launcher_1.3.0.v20140415-2008
    9. org.eclipse.jface_3.11.0.v20150121-1751
    10. org.eclipse.papyrus.uml.properties_1.1.0.201503251607
    11. org.eclipse.papyrus.umlrt.properties_1.1.0.201502041546
    12. org.eclipse.papyrus.umlrt_1.1.0.201502041546
    13. org.eclipse.papyrus.views.properties_1.1.0.201503251607
    14. org.eclipse.swt_3.104.0.v20150203-2243
    15. org.eclipse.ui_3.107.0.v20150107-0903
    16. org.eclipse.ui.ide.application_1.0.600.v20150120-1542
    17. org.eclipse.ui.ide_3.10.100.v20150126-1117
    18. org.eclipse.ui.navigator_3.5.500.v20150126-1500
    19. org.eclipse.ui.views_3.7.100.v20141003-0011
    20. org.eclipse.ui.views.properties.tabbed_3.6.0.v20140519-0906
    21. org.eclipse.xwt_1.1.0.M1-20141215-1730

Please note that:
* Messages, stacktraces, and nested status objects may be shortened.
* Bug fields like status, resolution, and whiteboard are sent
  back to reporters.
* The list of present bundles and their respective versions was
  calculated by package naming heuristics. This may or may not reflect reality.

Other Resources:
* Report: https://dev.eclipse.org/recommenders/committers/confess/#/problems/551464c0e4b0b71121dae471  
* Manual: https://dev.eclipse.org/recommenders/community/confess/#/guide


Thank you for your assistance.
Your friendly error-reports-inbox.
Comment 1 Onder Gurcan CLA 2015-04-09 08:14:16 EDT
I think that I have fixed this error in my last bug-fix: https://bugs.eclipse.org/bugs/show_bug.cgi?id=454035.

However, I also think that I would be better to have a null control before using the domain reference in UMLElementModel.