Uploaded image for project: 'CloverDX'
  1. CloverDX
  2. CLO-19138

Tooltip in Data Inspector - StringIndexOutOfBoundsException: String index out of range: -1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: rel-5-6-1
    • Fix Version/s: rel-5-8-0
    • Component/s: Designer
    • Security Level: Users (General product issues)
    • Environment:

      Designer 5.6.1.7
      Linux

    • QA Testing:
      UNDECIDED
    • Sprint:
      Blue Sprint 108

      Description

      Have an edge with auto-propagated metadata from HTTPConnector (HTTPConnector_Response) and some records on the edge. When you open DataInspector and move cursor over the content or contentByte field, following exception is logged:

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1967)
      	at com.cloveretl.gui.jface.tooltip.TooltipUtils.getTrimmedToolTipText(TooltipUtils.java:292)
      	at com.cloveretl.gui.debugdata.table.viewer.DataRecordValueLabelProvider.getToolTipText(DataRecordValueLabelProvider.java:50)
      	at org.eclipse.jface.viewers.ColumnViewerToolTipSupport.shouldCreateToolTip(ColumnViewerToolTipSupport.java:166)
      	at org.eclipse.jface.window.ToolTip.toolTipCreate(ToolTip.java:326)
      	at org.eclipse.jface.window.ToolTip.access$2(ToolTip.java:325)
      	at org.eclipse.jface.window.ToolTip$ToolTipOwnerControlListener.handleEvent(ToolTip.java:606)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5686)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1370)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4940)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4518)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1170)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1059)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:597)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
      	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:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
      

        Attachments

          Activity

            People

            Assignee:
            kylbergerj Jaroslav Kylberger
            Reporter:
            hajekt Tomas Hajek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: