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

Bug 348194

Summary: NPE editing Constraint
Product: [Modeling] Papyrus Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on:    
Bug Blocks: 399249    

Description Ed Willink CLA 2011-06-03 07:23:14 EDT
RC3:

Attemptint to edit a constraint using Esswential OCL gives

java.lang.NullPointerException
	at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:447)
	at org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog.createDialogArea(ExtendedDirectEditionDialog.java:103)
	at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
	at org.eclipse.jface.window.Window.create(Window.java:431)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
	at org.eclipse.jface.window.Window.open(Window.java:790)
	at org.eclipse.papyrus.extensionpoints.editors.ui.OpenEmbeddedTextEditorObjectActionDelegate.run(OpenEmbeddedTextEditorObjectActionDelegate.java:103)
	at org.eclipse.papyrus.extensionpoints.editors.ui.DirectEditorsContributionItem$1.widgetSelected(DirectEditorsContributionItem.java:155)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
Comment 1 Patrick Tessier CLA 2013-01-24 07:58:06 EST
I have not,  this problem can you retry it, I have applied the patch 388529
Comment 2 Patrick Tessier CLA 2013-01-28 09:32:01 EST
I attache this bugs to the task 399249
Comment 3 Ed Willink CLA 2013-01-28 11:23:46 EST
I think the problem code is replaced by the Bug 388529 patch.
Comment 4 Ed Willink CLA 2013-02-15 07:25:14 EST
The invocation of the EssentialOCL editor has been significantly simplified.

Starting the editor now works.