Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#97 NPE when to create a console application with Storage

pdt-v1.1.0
open
Yves YANG
9
2014-12-15
2010-10-11
Yves YANG
No

A NPE is noticed in the Console project creation with Windows Azure Storage:
osgi> java.lang.NullPointerException
at org.soyatec.windows.azure.jdt.util.BuildPathUtils.copyLibraries(Build
PathUtils.java:181)
at org.soyatec.windows.azure.jdt.util.BuildPathUtils.addLibrarySupport(B
uildPathUtils.java:106)
at org.soyatec.windows.azure.jdt.util.BuildPathUtils.addAzureSdkSupport(
BuildPathUtils.java:100)
at org.soyatec.windows.azure.jdt.util.JdtUtils.saveDataStorageModel(JdtU
tils.java:379)
at org.soyatec.windows.azure.jdt.util.JdtUtils.createConsoleProject(JdtU
tils.java:346)
at org.soyatec.windows.azure.jdt.ui.wizard.NewConsoleApplicationWizard.p
erformFinish(NewConsoleApplicationWizard.java:135)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
:752)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.jdt.ui.actions.AbstractOpenWizardAction.run(AbstractOpenW
izardAction.java:84)
at org.soyatec.windows.azure.jdt.ui.action.NewConsoleProjectAction.run(N
ewConsoleProjectAction.java:57)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:2
51)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginActio
n.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
butionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
ontributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
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.ja
va:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
cation.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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)

Discussion