Community
Participate
Working Groups
Build Identifier: 20110916-0149 Sometimes when opening JSP file, Eclipse shows "Problem Occurred" popup which talks about NullPointerException in org.eclipse.wst.common.snippets.internal.SnippetTransfer.nativeToJava(SnippetTransfer.java:87). Reproducible: Sometimes Steps to Reproduce: 1. Open JSP.
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!