Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-4238

Table viewer throws OOBE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • API, Hop GUI
    • None

    Description

      If you select a single row in a table view (not the first line) and then keep only that line (CTRL-K) you can get the following exception if you hit ENTER afterwards. 

      java.lang.IllegalArgumentException: Index out of bounds
          at org.eclipse.swt.SWT.error(SWT.java:4899)
          at org.eclipse.swt.SWT.error(SWT.java:4833)
          at org.eclipse.swt.SWT.error(SWT.java:4804)
          at org.eclipse.swt.widgets.Widget.error(Widget.java:565)
          at org.eclipse.swt.widgets.Table.getItem(Table.java:1577)
          at org.apache.hop.ui.core.widget.TableView.setPosition(TableView.java:2131)
          at org.apache.hop.ui.core.widget.TableView.edit(TableView.java:2136)
          at org.apache.hop.ui.core.widget.TableView$24.keyPressed(TableView.java:1022)
          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:171)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
          at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5794)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1555)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1538)
          at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1577)
          at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:937)
          at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:4004)
          at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:921)
          at org.eclipse.swt.widgets.Table.gtk_key_press_event(Table.java:2188)
          at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2434)
          at org.eclipse.swt.widgets.Control.windowProc(Control.java:6832)
          at org.eclipse.swt.widgets.Table.windowProc(Table.java:4193)
          at org.eclipse.swt.widgets.Display.windowProc(Display.java:6114)
          at org.eclipse.swt.internal.gtk3.GTK3.gtk_main_do_event(Native Method)
          at org.eclipse.swt.widgets.Display.eventProc(Display.java:1552)
          at org.eclipse.swt.internal.gtk3.GTK3.gtk_main_iteration_do(Native Method)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4474)
          at org.apache.hop.ui.core.dialog.BaseDialog.defaultShellHandling(BaseDialog.java:478)
          at org.apache.hop.ui.testing.EditRowsDialog.open(EditRowsDialog.java:161)
          at org.apache.hop.testing.gui.TestingGuiPlugin.setGoldenDataSetOnTransform(TestingGuiPlugin.java:468)
          at org.apache.hop.testing.gui.TestingGuiPlugin.setGoldenDataSet(TestingGuiPlugin.java:401)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          at org.apache.hop.core.gui.plugin.action.GuiActionLambdaBuilder.lambda$createLambda$0(GuiActionLambdaBuilder.java:96)
          at org.apache.hop.ui.hopgui.context.GuiContextUtil.handleActionSelection(GuiContextUtil.java:171)
          at org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.showActionDialog(HopGuiPipelineGraph.java:1280)
          at org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.mouseUp(HopGuiPipelineGraph.java:1083)
          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
          at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5794)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5025)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4477)
          at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:403)
          at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:304)
       

      The table viewer has the wrong index of the line it's currently positioned on.  
      Hitting enter tries to edit the cell which is no longer on the line that is expected.

      Attachments

        Activity

          People

            mcasters Matt Casters
            mcasters Matt Casters
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: