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

Bug 329371

Summary: [Class Diagram] Drop Dependency with an Association as client or supplier throws Exception
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Patrick Tessier <Patrick.Tessier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Patrick.Tessier
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 329346    
Attachments:
Description Flags
A Patch none

Description Vincent Lorenzo CLA 2010-11-03 12:46:19 EDT
Cloned from: 329353: [Profile Diagram] Drop n-ary Dependency with an Association as client or supplier throws Exception
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329353

We get an NPE, because, in CommonDeferredCreateConnectionViewCommand, 
the lines (IGraphicalEditPart)epRegistry.get(sourceViewAdapter.getAdapter(View.class));
returns AssociationNameEditPart and not AssociationEditPart.
Comment 1 Vincent Lorenzo CLA 2010-11-03 12:55:29 EDT
Created attachment 182309 [details]
A Patch

I propose this patch to correct the bug.
Comment 2 Vincent Lorenzo CLA 2010-11-04 04:29:46 EDT
Committed in R3110
Comment 3 Vincent Lorenzo CLA 2013-03-13 09:47:46 EDT
This bug can be marked as closed fixed.