Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20758

NullPointerException when creating new artifact from Properties view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.3.0.CR2
    • 4.3.0.CR1
    • batch
    • None
    • Hide
      1. In diagram editor, create new step + chunk
      2. in chunk properties view, open reader tab and click error mark and click Create Artifact (note that text field must be empty)

      RESULT: NullPointerException in Error log

      Show
      In diagram editor, create new step + chunk in chunk properties view, open reader tab and click error mark and click Create Artifact (note that text field must be empty) RESULT: NullPointerException in Error log

    Description

      When I try to create new artifact from suggestion box in Properties view, I get the following NullPointerException. It happens only if the ref field is empty, it does not happen if there is something written.

      java.lang.NullPointerException
      	at org.jboss.tools.batch.ui.editor.internal.action.OpenOrCreateArtifactActionDelegate.run(OpenOrCreateArtifactActionDelegate.java:139)
      	at org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDialog$1.linkActivated(PropertyEditorAssistDialog.java:146)
      	at org.eclipse.sapphire.ui.forms.swt.internal.text.SapphireFormText.activateLink(SapphireFormText.java:1583)
      	at org.eclipse.sapphire.ui.forms.swt.internal.text.SapphireFormText.handleMouseClick(SapphireFormText.java:1374)
      	at org.eclipse.sapphire.ui.forms.swt.internal.text.SapphireFormText.access$16(SapphireFormText.java:1345)
      	at org.eclipse.sapphire.ui.forms.swt.internal.text.SapphireFormText$6.mouseUp(SapphireFormText.java:445)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
      	at org.eclipse.sapphire.ui.forms.swt.Popup.open(Popup.java:250)
      	at org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDecorator.openAssistDialog(PropertyEditorAssistDecorator.java:407)
      	at org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDecorator.access$3(PropertyEditorAssistDecorator.java:385)
      	at org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDecorator$6.mouseUp(PropertyEditorAssistDecorator.java:285)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      
      

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            ljelinko@redhat.com Lucia Jelinkova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: