Mobile Object Spy - using 'Add to Mobile Object Spy' gives NullPointerException

Hi
similar issue to this one from 3 years ago - it has no resolution mentioned.

NullPointerException when adding an object to mobile object Spy

I’m running KSE 8.6.8 on Windows 10 machine, using a preinstalled app on Android.
When I add existing objects to the Spy (after first starting it), it creates a NullPointerException and moves focus back to KSE rather than the Spy (with an error dialog as below)
NullPointer
.
As a workaround, it seems to be possible to ignore the alert and continue using the Spy - as long as the alert is not closed, because if it is, a new one is generated!
If the alert is ignored, multiple lines will keep adding to the dialog, as in the screenshot.
To summarise - it doesn’t look very good and workaround is not intuitive (simply ignoring errors).
Error message is below:

!ENTRY org.eclipse.jface 4 2 2024-02-22 13:14:33.951
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
!STACK 0
java.lang.NullPointerException

  • at com.kms.katalon.composer.mobile.objectspy.composites.MobileElementPropertiesComposite.refreshAttributesTable(MobileElementPropertiesComposite.java:376)*
  • at com.kms.katalon.composer.mobile.objectspy.composites.MobileElementPropertiesComposite.setEditingElement(MobileElementPropertiesComposite.java:86)*
  • at com.kms.katalon.composer.mobile.objectspy.dialog.MobileObjectSpyDialog.setEdittingElement(MobileObjectSpyDialog.java:824)*
  • at com.kms.katalon.composer.mobile.objectspy.composites.MobileCapturedObjectsComposite$1.selectionChanged(MobileCapturedObjectsComposite.java:147)*
  • at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:151)*
  • at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)*
  • at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)*
  • at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:148)*
  • at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)*
  • at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1178)*
  • at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1207)*
  • at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)*
  • at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:237)*
  • at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:402)*
  • at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)*
  • at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4213)*
  • at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)*
  • at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4030)*
  • at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)*
  • at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1158)*
  • at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)*
  • at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1047)*
  • at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)*
  • at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)*
  • at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)*
  • at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)*
  • at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)*
  • at com.kms.katalon.core.application.WorkbenchApplicationStarter.start(WorkbenchApplicationStarter.java:23)*
  • at com.kms.katalon.application.Application.runGUI(Application.java:191)*
  • at com.kms.katalon.application.Application.start(Application.java:102)*
  • at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)*
  • at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)*
  • at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)*
  • at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)*
  • at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)*
  • 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:498)*
  • at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)*
  • at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)*
  • at org.eclipse.equinox.launcher.Main.run(Main.java:1447)*
1 Like

Hi,

My team has been investigating this issue. I will let you know soon if there is any update. Thank you!