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

Bug 370667

Summary: NPE in ValidateAction.handleDiagnostic
Product: [Modeling] Ecoretools Reporter: Ed Willink <ed>
Component: GeneralAssignee: Project Inbox <ecore-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cedric.brun
Version: unspecified   
Target Milestone: 2.0.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on:    
Bug Blocks: 368612    

Description Ed Willink CLA 2012-02-05 15:00:13 EST
There is no ValidateAction on the Ecore Diagram, where it could work.

Instead there is a ValidateAction on the Outline where the following NPE occurs because "domain" is null since setActiveWorkbenchPart is not invoked.

Alos because domain is null there is no adapterFactory to provide better names in the Validation dialog.

ValidateAction.handleDiagnostic(Diagnostic) line: 315	
ValidateAction$1$1.run() line: 183	
RunnableLock.run() line: 35	
UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 135
Comment 1 Cedric Brun CLA 2014-01-06 08:37:27 EST
This is no longer true for EcoreTools 2.0.