Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329371 - [Class Diagram] Drop Dependency with an Association as client or supplier throws Exception
Summary: [Class Diagram] Drop Dependency with an Association as client or supplier thr...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Patrick Tessier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 329346
  Show dependency tree
 
Reported: 2010-11-03 12:46 EDT by Vincent Lorenzo CLA
Modified: 2013-03-13 09:47 EDT (History)
1 user (show)

See Also:


Attachments
A Patch (3.49 KB, patch)
2010-11-03 12:55 EDT, Vincent Lorenzo CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.