| Summary: | NullPointerException in wst.common.snippets when opening JSP | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Victor Homyakov <vkhomyackov> | ||||||||
| Component: | Snippets Framework | Assignee: | Nitin Dahyabhai <thatnitind> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | dirk.olmes, rulatir, thatnitind | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 3.4 M7 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Victor Homyakov
Created attachment 205015 [details]
Error log details
I see the same stack trace when opening new .java files with the snippets view active. Created attachment 207711 [details]
Patch to avoid the NPE
I get a NPE with similar stack trace, with the flows converging at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:610). Attaching the trace. Created attachment 209510 [details]
Somewhat different stacktrace
Forgot to add in the original comment that I receive it most of the time when a view that is placed in a tab is activated for the first time. For example, when I launch Eclipse and it reopens files in editors, I get one NPE immediately for the active tab. Then when I switch to other tabs, I get the NPE once for each tab, but not upon any subsequent switching to the tabs that had been activated at least once. For another example, I received this NPE when I opened the error log view, because it opened in a tab and immediately activated. I copied the stack trace from the most recent entry in the log, so it may well be the trace of the NPE that I got when opening the error log view.
Patch released, thanks, Dirk! |