| Summary: | NPE in TargetingTool.updateTargetUnderMouse() when closing diagrams | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Cherie Revells <crevells> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Cherie Revells
> java.lang.NullPointerException
> at org.eclipse.gef.tools.TargetingTool.updateTargetUnderMouse(Unknown
> Source)
> at org.eclipse.gef.tools.TargetingTool.unlockTargetEditPart(Unknown
> Source)
> at org.eclipse.gef.tools.TargetingTool.deactivate(Unknown Source)
I'm having trouble reading the trace. deactivate() does not call unlockTargetEditPart in TargetingTool. Please provide steps to reproduce.
I couldn't figure out how unlockTargetEditPart() was called either, but that's the trace that was given. The scenario to reproduce involves a client's application. If getCurrentViewer() says it could return null on deactivate, is it not possible that this situation could arise? Why can't we just add a null check when calling getCurrentViewer()? |