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

Bug 322771

Summary: Marquee and Delete - Unhandled event loop exception
Product: [WebTools] Dali JPA Tools Reporter: Alexander Silgidjian <alexander.silgidjian>
Component: Diagram EditorAssignee: Petya Sabeva <petya.sabeva>
Status: RESOLVED FIXED QA Contact: Stefan Dimov <stefan.dimov>
Severity: minor    
Priority: P3 CC: markus.kell.r, petya.sabeva, ram.venkataswamy
Version: 0.5   
Target Milestone: 0.5 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch stefan.dimov: iplog+

Description Alexander Silgidjian CLA 2010-08-16 06:09:29 EDT
Hello,

I have a diagram with couple of Entities and Relation between them.
Using the Marquee tool, I select both the Entities and press Del. 
As a result NPE is thrown:

java.lang.NullPointerException
at org.eclipse.jpt.ui.diagrameditor.feature.ClickRemoveAttributeButtonFeature.deleteAttribute(ClickRemoveAttributeButtonFeature.java:60)
at org.eclipse.jpt.ui.diagrameditor.feature.ClickRemoveAttributeButtonFeature.delete(ClickRemoveAttributeButtonFeature.java:82)
at org.eclipse.jpt.ui.diagrameditor.feature.ClickRemoveAttributeButtonFeature.delete(ClickRemoveAttributeButtonFeature.java:65)
at org.eclipse.graphiti.ui.features.DefaultDeleteFeature.execute(DefaultDeleteFeature.java:177)
at org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext.execute(GenericFeatureCommandWithContext.java:64)
at org.eclipse.graphiti.ui.internal.command.GefCommandWrapper.execute(GefCommandWrapper.java:54)
....................
Comment 1 Petya Sabeva CLA 2010-08-17 11:28:38 EDT
Created attachment 176799 [details]
patch
Comment 2 Stefan Dimov CLA 2010-08-30 09:12:17 EDT
Patch committed
Comment 3 Stefan Dimov CLA 2010-08-31 10:10:04 EDT
*** Bug 322773 has been marked as a duplicate of this bug. ***
Comment 4 Stefan Dimov CLA 2010-08-31 10:19:47 EDT
(In reply to comment #3)
> *** Bug 322773 has been marked as a duplicate of this bug. ***

This was a mistake ... Wrong bug number ...
Comment 5 Stefan Dimov CLA 2010-08-31 10:20:40 EDT
*** Bug 323773 has been marked as a duplicate of this bug. ***