{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/563","repository_url":"https://api.github.com/repos/vaadin/eclipse-plugin","labels_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/563/comments","events_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/563/events","html_url":"https://github.com/vaadin/eclipse-plugin/issues/563","id":134609575,"number":563,"title":"\"New Vaadin Widget\" wizard throws NPE when no project selected","user":{"login":"makoivis","id":7498049,"avatar_url":"https://avatars.githubusercontent.com/u/7498049?v=3","gravatar_id":"","url":"https://api.github.com/users/makoivis","html_url":"https://github.com/makoivis","followers_url":"https://api.github.com/users/makoivis/followers","following_url":"https://api.github.com/users/makoivis/following{/other_user}","gists_url":"https://api.github.com/users/makoivis/gists{/gist_id}","starred_url":"https://api.github.com/users/makoivis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makoivis/subscriptions","organizations_url":"https://api.github.com/users/makoivis/orgs","repos_url":"https://api.github.com/users/makoivis/repos","events_url":"https://api.github.com/users/makoivis/events{/privacy}","received_events_url":"https://api.github.com/users/makoivis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T15:22:59Z","updated_at":"2016-02-18T15:23:13Z","closed_at":null,"body":"**Reported by Johannes Dahlstrom on 12 Jul 2013 10:02 UTC**\nSelecting \"Vaadin Widget\" in the New dialog, then clicking \"Next\" does nothing if there's no project selected in the Package Explorer; double-clicking the \"Vaadin Widget\" gives a \"Problem Occurred\" dialog informing that a NullPointerException was thrown. If another option is then chosen in the New dialog without closing and reopening the dialog, the Vaadin Widget wizard is shown but cannot be completed.\r\n\r\nThe error log gives the following stack trace:\r\n\r\n```\r\njava.lang.NullPointerException\r\n\tat com.vaadin.integration.eclipse.wizards.NewComponentWizardPage.selectTemplate(NewComponentWizardPage.java:282)\r\n\tat com.vaadin.integration.eclipse.wizards.NewComponentWizardPage.updateTemplateCombo(NewComponentWizardPage.java:198)\r\n\tat com.vaadin.integration.eclipse.wizards.NewComponentWizardPage.createClientSideControls(NewComponentWizardPage.java:276)\r\n\tat com.vaadin.integration.eclipse.wizards.NewComponentWizardPage.createControl(NewComponentWizardPage.java:238)\r\n\tat org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1246)\r\n\tat org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)\r\n\tat org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)\r\n\tat org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)\r\n\tat org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1225)\r\n\tat org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)\r\n\tat org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)\r\n\tat org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)\r\n\tat org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)\r\n\tat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\r\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)\r\n\tat org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562)\r\n\tat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186)\r\n\tat org.eclipse.jface.window.Window.runEventLoop(Window.java:825)\r\n\tat org.eclipse.jface.window.Window.open(Window.java:801)\r\n\tat org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)\r\n\tat org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)\r\n\tat org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)\r\n\tat org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)\r\n\tat org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)\r\n\tat org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)\r\n\tat org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)\r\n\tat org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)\r\n\tat org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)\r\n\tat org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)\r\n\tat org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)\r\n\tat org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)\r\n\tat org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)\r\n\tat org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)\r\n\tat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\r\n\tat org.eclipse.swt.widgets.Display.filterEvent(Display.java:1484)\r\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1275)\r\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300)\r\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1285)\r\n\tat org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1312)\r\n\tat org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:748)\r\n\tat org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3050)\r\n\tat org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:741)\r\n\tat org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1773)\r\n\tat org.eclipse.swt.widgets.Control.windowProc(Control.java:5116)\r\n\tat org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3476)\r\n\tat org.eclipse.swt.widgets.Display.windowProc(Display.java:4377)\r\n\tat org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)\r\n\tat org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8317)\r\n\tat org.eclipse.swt.widgets.Display.eventProc(Display.java:1193)\r\n\tat org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)\r\n\tat org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2342)\r\n\tat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3184)\r\n\tat org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)\r\n\tat org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)\r\n\tat org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)\r\n\tat org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)\r\n\tat org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)\r\n\tat org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)\r\n\tat org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)\r\n\tat org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)\r\n\tat org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)\r\n\tat org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)\r\n\tat org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)\r\n\tat org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)\r\n\tat org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)\r\n\tat org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)\r\n\tat org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)\r\n\tat org.eclipse.equinox.launcher.Main.run(Main.java:1438)\r\n\tat org.eclipse.equinox.launcher.Main.main(Main.java:1414)\r\n```\n\nMigrated-From: http://dev.vaadin.com//ticket/12216"},"comment":{"url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/comments/185772097","html_url":"https://github.com/vaadin/eclipse-plugin/issues/563#issuecomment-185772097","issue_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/563","id":185772097,"user":{"login":"makoivis","id":7498049,"avatar_url":"https://avatars.githubusercontent.com/u/7498049?v=3","gravatar_id":"","url":"https://api.github.com/users/makoivis","html_url":"https://github.com/makoivis","followers_url":"https://api.github.com/users/makoivis/followers","following_url":"https://api.github.com/users/makoivis/following{/other_user}","gists_url":"https://api.github.com/users/makoivis/gists{/gist_id}","starred_url":"https://api.github.com/users/makoivis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makoivis/subscriptions","organizations_url":"https://api.github.com/users/makoivis/orgs","repos_url":"https://api.github.com/users/makoivis/repos","events_url":"https://api.github.com/users/makoivis/events{/privacy}","received_events_url":"https://api.github.com/users/makoivis/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T15:23:13Z","updated_at":"2016-02-18T15:23:13Z","body":"**Modified by Artur Signell on 15 Nov 2013 14:03 UTC**"}}