Connect IQ plugin raise "Null pointer exception" on Eclipse

Former Member
Former Member

Hi, everyone!

When I set "Run Configurations", I found my Target Device and Target SDK version is "<invalid>". Does anyone know how to solve this?

My eclipse version is:

Eclipse IDE for Java Developers

Version: 2019-12 (4.14.0)
Build id: 20191212-1212

The exception is:

ENTRY org.eclipse.ui 4 0 2020-11-01 17:26:15.408
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at java.util.ComparableTimSort.countRunAndMakeAscending(Unknown Source)
at java.util.ComparableTimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at com.garmin.connectiq.ide.project.DeviceUtils.sortDevices(DeviceUtils.java:150)
at com.garmin.connectiq.ide.launcher.MainTab.updateDeviceCombo(MainTab.java:304)
at com.garmin.connectiq.ide.launcher.MainTab.access$6(MainTab.java:296)
at com.garmin.connectiq.ide.launcher.MainTab$1.widgetSelected(MainTab.java:88)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4175)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3988)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3587)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
at org.eclipse.jface.window.Window.open(Window.java:799)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1241)
at org.eclipse.debug.ui.DebugUITools.lambda$1(DebugUITools.java:627)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:633)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:571)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:85)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)