| Summary: | Calling addGraphicalRepresentation from a Custom Feature results in NullPointerException | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Jan Schoubo <jan> | ||||
| Component: | Core | Assignee: | Michael Wenz <michael.wenz> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jan, michael.wenz, tim.kaiser | ||||
| Version: | 0.7.0 | Flags: | michael.wenz:
indigo+
|
||||
| Target Milestone: | 0.8.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | Indigo M7 theme_bugs | ||||||
| Attachments: |
|
||||||
|
Description
Jan Schoubo
Created attachment 191488 [details]
full stacktrace
I have changed the async exec call to use Display.getDefault() instead of Display.getCurrent; now this should work in all threads. To the related problem: instead of calling addGraphicalRepresentation from AbstractFeature, you should call addIfPossible in your feature provider; this method is public and addGraphicalRepresentation simply delegates to it. Michael Part of Graphiti Indigo 0.8.0 |