pulse00/Symfony-2-Eclipse-Plugin — Issue #48: Null exception during twig edition
Author: PomepuyN
Created: 2011-10-31 10:23:57+00:00
State: open

I frequently get this error when editing a twig file :
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:305)
at com.dubture.twig.core.model.TwigModelAccess.isStartTag(TwigModelAccess.java:186)
at com.dubture.twig.core.model.TwigModelAccess.isTwigTag(TwigModelAccess.java:332)
at com.dubture.twig.core.documentModel.dom.ElementImplForTwig.isTwigTag(ElementImplForTwig.java:96)
at com.dubture.twig.core.documentModel.dom.ElementImplForTwig.getExistingAdapter(ElementImplForTwig.java:105)
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:2530)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)

Session data :
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product