Menu

#3 Nullpointer exception in updateTestCase

open
nobody
None
5
2004-09-03
2004-09-03
Anonymous
No

Hi
I was trying to use the Code sugar plugin with Eclispse
3.0. While trying to use updateTestCase on a class of
mine I was getting a dialog box with message as
nullpointer exception
I imported the plugin as a plugin project and tried
debugging through it. This is the console output.
I cant seem to make out why is this exception coming
Regards
borntough

className: MylinkTest
testClassPost: Test
substring : 0,6
sourceClassName: Mylink
java.lang.NullPointerException
at
org.into.eclipse.codesugar.actions.TestCaseUpdater.gene
rateMissingMethods(TestCaseUpdater.java:42)
at
org.into.eclipse.codesugar.actions.UpdateTestCaseAction
.run(UpdateTestCaseAction.java:29)
at
org.into.eclipse.codesugar.actions.ActionOnType.run
(ActionOnType.java:42)
at
org.eclipse.ui.internal.PluginAction.runWithEvent
(PluginAction.java:276)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent
(WWinPluginAction.java:206)
at
org.eclipse.jface.action.ActionContributionItem.handleWid
getSelection(ActionContributionItem.java:915)
at
org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:866)
at
org.eclipse.jface.action.ActionContributionItem$7.handleE
vent(ActionContributionItem.java:785)
at
org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent
(Widget.java:796)
at
org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java:2772)
at
org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2431)
at
org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbenc
h(Workbench.java:254)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun
(Main.java:183)
at org.eclipse.core.launcher.Main.run
(Main.java:644)
at org.eclipse.core.launcher.Main.main
(Main.java:628)

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.