eclipse-qvtd / org.eclipse.qvtd

Eclipse Public License 2.0
0 stars 0 forks source link

NPE in org.eclipse.qvt.declarative.editor.ui.imp.CommonContentProposals.computeProposals #14

Closed eclipse-qvtd-bot closed 2 weeks ago

eclipse-qvtd-bot commented 2 weeks ago

| --- | --- | | Bugzilla Link | 277746 | | Status | CLOSED FIXED | | Importance | P3 normal | | Reported | May 25, 2009 15:01 EDT | | Modified | Mar 18, 2015 16:44 EDT | | Reporter | Nicolas Rouquette |

Description

Got this weird error:

Exception caught from language-specific content proposer implementation\ java.lang.NullPointerException\ at org.eclipse.qvt.declarative.editor.ui.imp.CommonContentProposals.computeProposals(CommonContentProposals.java:236)\ at org.eclipse.qvt.declarative.editor.ui.imp.CommonContentProposer.getContentProposals(CommonContentProposer.java:51)\ at org.eclipse.imp.editor.internal.CompletionProcessor.computeCompletionProposals(CompletionProcessor.java:53)\ at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1832)\ at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)\ at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeFilteredProposals(CompletionProposalPopup.java:1472)\ at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$4(CompletionProposalPopup.java:1421)\ at org.eclipse.jface.text.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:372)\ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)\ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)\ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)\ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)\ at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)\ at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)\ at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)\ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)\ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)\ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)\ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)\ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)\ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)\ 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:368)\ 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:559)\ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)\ at org.eclipse.equinox.launcher.Main.run(Main.java:1311)\ at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

eclipse-qvtd-bot commented 2 weeks ago

By Ed Willink on May 28, 2009 07:54

Thanks. Looks like node is non-null but node.getAst() is null.

Suggest changing line 227 of CommonContentProposals.java from

if (node == null)

to

if ((node == null) || (node.getAst() == null))

Will fix properly once back from holiday.

Any clue as to what you wanted a proposal for?

eclipse-qvtd-bot commented 2 weeks ago

By Ed Willink on Jun 06, 2009 11:23

Fixed in CVS

eclipse-qvtd-bot commented 2 weeks ago

By Ed Willink on Oct 27, 2012 05:04

Fixed long ago.

eclipse-qvtd-bot commented 2 weeks ago

By Ed Willink on May 27, 2014 07:01

CLOSED after more than a year in RESOLVED state