pulse00/Twig-Eclipse-Plugin — Issue #42: java.lang.NullPointerException
Author: askyoh
Created: 2011-12-27 17:33:35+00:00
State: open

Hello.

Updated from Eclipse to version 1.0.92

Eclipse > Help > Install New Software ...

Work with : TWIG plugin - http://pulse00.github.com/Twig-Eclipse-Plugin/

I get this error while clicking on TWIG code (example : block) or while writing TWIG code.

"An error has occurred. See error log for more details.
java.lang.NullPointerException"

From log :

!ENTRY org.eclipse.wst.sse.ui 4 2 2011-12-27 18:33:58.454
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.wst.sse.ui".
!STACK 0
java.lang.NullPointerException
at org.eclipse.dltk.internal.core.index.sql.SqlSearchEngine.search(SqlSearchEngine.java:71)
at com.dubture.twig.core.model.TwigModelAccess.isTag(TwigModelAccess.java:313)
at com.dubture.twig.core.model.TwigModelAccess.isStartTag(TwigModelAccess.java:194)
at com.dubture.twig.core.model.TwigModelAccess.isTwigTag(TwigModelAccess.java:341)
at com.dubture.twig.core.documentModel.dom.ElementImplForTwig.isTwigTag(ElementImplForTwig.java:109)
at com.dubture.twig.core.documentModel.dom.ElementImplForTwig.getExistingAdapter(ElementImplForTwig.java:118)
at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.getAdapterFor(AbstractNotifier.java:85)
at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeLabelProvider.getAdapter(JFaceNodeLabelProvider.java:40)
at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeLabelProvider.getText(JFaceNodeLabelProvider.java:66)
at org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML$1.getText(StructuredTextViewerConfigurationHTML.java:233)
at org.eclipse.wst.sse.ui.StructuredTextEditor.updateStatusLine(StructuredTextEditor.java:3512)
at org.eclipse.wst.sse.ui.StructuredTextEditor$11.selectionChanged(StructuredTextEditor.java:2320)
at org.eclipse.wst.sse.ui.StructuredTextEditor$4.run(StructuredTextEditor.java:592)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:590)
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handlePostSelectionChanged(StructuredTextEditor.java:671)
at org.eclipse.wst.sse.ui.StructuredTextEditor$3.selectionChanged(StructuredTextEditor.java:564)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2749)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2697)
at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2676)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4266)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3353)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)