| Summary: | thumbnail outline of gef will throw null point exception in certain condition | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Ben Xu <xufengbing> | ||||||||||
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Anthony Hunter <ahunter.eclipse> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | ahunter.eclipse | ||||||||||
| Version: | 3.5 | ||||||||||||
| Target Milestone: | 3.6.0 (Helios) M4 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux-GTK | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ben Xu
Created attachment 140758 [details]
ShapesEditor.java
Created attachment 140759 [details]
test.shapes
Created attachment 140760 [details]
outline1.gif
Created attachment 140761 [details]
outline2.gif
this bug appears since GEF on eclipse 3.3.2.
And if manually check the "thumbnailGraphics" in the following method by add
if(thumbnailGraphics==null){
return;
}
in the begin of org.eclipse.draw2d.parts.Thumbnail$ThumbnailUpdater.run()
the error message will gone.
it's the simplest way to "fix" it.
(In reply to comment #5) > this bug appears since GEF on eclipse 3.3.2. > And if manually check the "thumbnailGraphics" in the following method by add > > if(thumbnailGraphics==null){ > return; > } > > in the begin of org.eclipse.draw2d.parts.Thumbnail$ThumbnailUpdater.run() > > the error message will gone. > > it's the simplest way to "fix" it. Made this minor fix in HEAD for 3.6.0. |