| Summary: | NPE protection in DiagramIOUtil | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | Lidija Grahek <lgrahek> | ||||
| Component: | General | Assignee: | Lidija Grahek <lgrahek> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | aboyko, ahunter.eclipse | ||||
| Version: | 2.3 | ||||||
| Target Milestone: | 2.3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
looks good to me look good as well. Committed to head. [target cleanup] 2.3 RC was the original target milestone for this bug [GMF Restructure] Bug 319140 : product GMF and component Runtime was the original product and component for this bug |
Created attachment 170435 [details] Patch DiagramIOUtil.unload(...) calls diagram.eResource().unload(). However, in my case resource is already unloaded, so this call results in an NPE. Attached patch just adds a simple NPE protection.