This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 345871 - java.lang.NullPointerException when I delete artifact from the diagram
Summary: java.lang.NullPointerException when I delete artifact from the diagram
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Diagrams (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 01:09 EDT by Maria Kolchinskaja CLA
Modified: 2011-05-26 00:47 EDT (History)
3 users (show)

See Also:


Attachments
TS-345871.patch.txt (2.13 KB, text/plain)
2011-05-25 07:04 EDT, Valentin Yerastov CLA
no flags Details

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