Project: appceleratorstudio
Issue TISTUD-6890: Can't package for Android, Mobile Web & Blackberry with latest 3.4.0 studio throws NullPointerException
h5. Description: 1. Update to appc studio 3.4.0.201409032106. 2. Create a new app targeting all platforms. 3. Package for Android, Mobile Web & Blackberry. h5. Expected Results: 1. The package dialog show up & the app should package successfully. h5. Actual Results: 1. The package dialog does not show up for Android, Mobile Web & Blackberry & throws null pointer exception in studio logs: {code} !ENTRY com.appcelerator.titanium.ui 4 0 2014-09-05 13:40:41.026 !MESSAGE (Build 3.4.0.201409032106) [ERROR] java.lang.NullPointerException !STACK 0 org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243) org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224) org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167) org.eclipse.core.commands.Command.executeWithChecks(Command.java:499) com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.launch(AbstractPackagingLaunchShortcut.java:47) org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:434) com.appcelerator.titanium.ui.LaunchAppToolbarContribution$3.widgetSelected(LaunchAppToolbarContribution.java:405) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4166) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) org.eclipse.equinox.launcher.Main.run(Main.java:1450) Caused by: java.lang.NullPointerException com.appcelerator.titanium360.ui.launch.contributor.Titanium360EnvsLaunchConfigurationContributor.initialize(Titanium360EnvsLaunchConfigurationContributor.java:136) com.appcelerator.titanium.ui.mobile.AbstractPlatformConfigurationComponent.initializeContributors(AbstractPlatformConfigurationComponent.java:151) com.appcelerator.titanium.android.ui.distribution.AndroidDistributionComponent.initialize(AndroidDistributionComponent.java:461) com.appcelerator.titanium.android.ui.distribution.AndroidDistributionComponent.createContents(AndroidDistributionComponent.java:287) com.appcelerator.titanium.android.ui.distribution.AndroidPackagingPage.createControl(AndroidPackagingPage.java:43) org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174) org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736) org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608) com.appcelerator.titanium.ui.wizard.PublishWizardDialog.createContents(PublishWizardDialog.java:56) org.eclipse.jface.window.Window.create(Window.java:432) org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1104) org.eclipse.jface.window.Window.open(Window.java:791) com.appcelerator.titanium.android.ui.distribution.AndroidPackageHandler.execute(AndroidPackageHandler.java:33) org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290) org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)	... 38 more {code}
Story points: 5