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

Bug 345871

Summary: java.lang.NullPointerException when I delete artifact from the diagram
Product: [Technology] Tigerstripe Reporter: Maria Kolchinskaja <mshulgina>
Component: DiagramsAssignee: Project Inbox <tigerstripe.diagram-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nmehrega, valentin, yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
TS-345871.patch.txt none

Description Maria Kolchinskaja CLA 2011-05-16 01:09:31 EDT
Build Identifier: 

1. Create Tigerstripe project with Entity artifact
2. Create Class diagram and add Entity artifact on it.
3. Cleck on Entity artifact on diagram and select 'Remove from model' item in dropdown menu 
4. Select 'OK' in warning message

Result:

An internal error occurred during: "Model updating...".
java.lang.NullPointerException
	at org.eclipse.tigerstripe.workbench.internal.api.impl.updater.request.ArtifactDeleteRequest.execute(ArtifactDeleteRequest.java:82)
	at org.eclipse.tigerstripe.workbench.internal.api.impl.updater.ModelUpdaterImpl$1.run(ModelUpdaterImpl.java:56)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Always
Comment 1 navid.mehregani CLA 2011-05-16 09:20:06 EDT
I'm unable to reproduce this issue with the latest TS code on a Mac.  

Has anyone else seen this?
Comment 2 Maria Kolchinskaja CLA 2011-05-17 03:59:25 EDT
Navid,
I've tried to reproduce this issue on Mac, and it is also not reproduced.

But it is still reproduced on latest Tigerstripe on Win7
Comment 3 Valentin Yerastov CLA 2011-05-23 09:18:38 EDT
I'm unable to reproduce it with the latest TS code too on the Win7 and linux.
Comment 4 Valentin Yerastov CLA 2011-05-25 07:03:35 EDT
I'm able to reproduce it. This bug is not always reproduced, and related with multithreading.
Comment 5 Valentin Yerastov CLA 2011-05-25 07:04:20 EDT
Created attachment 196536 [details]
TS-345871.patch.txt

Fixed.
Comment 6 Yuri Strot CLA 2011-05-25 11:22:30 EDT
Valentin's patch applied.
Comment 7 Maria Kolchinskaja CLA 2011-05-26 00:47:16 EDT
Verified. Closing issue