Bug 576676

Summary: NPE in FBNetworkPanningSelectionTool of 4diac IDE 2.0.0
Product: [IoT] 4DIAC Reporter: Ricardo Rech <ricardorech>
Component: 4DIAC-IDEAssignee: Project Inbox <4diac-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: alois.zoitl
Version: 2.0.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.ide/+/186575
https://git.eclipse.org/c/4diac/org.eclipse.4diac.ide.git/commit/?id=f66c3cff4b7df808ef5b983d6df48bd20f35fad5
Whiteboard:
Attachments:
Description Flags
buf image none

Description Ricardo Rech CLA 2021-10-17 00:28:44 EDT
Created attachment 287319 [details]
buf image
Comment 1 Alois Zoitl CLA 2021-10-17 05:10:01 EDT
thank you for your bug report. Could you be so kind and tell us what you did bevor that window poped up?

Also it would help us a lot if you copy the details as text as comment to the bug report.
Comment 2 Alois Zoitl CLA 2021-10-17 15:09:25 EDT
Interestingly I encountered the same problem today. Please find below the full stack trace.

java.lang.NullPointerException
	at org.eclipse.fordiac.ide.application.tools.FBNetworkPanningSelectionTool.activateConnectionCreation(FBNetworkPanningSelectionTool.java:157)
	at org.eclipse.fordiac.ide.application.tools.FBNetworkPanningSelectionTool.keyDown(FBNetworkPanningSelectionTool.java:135)
	at org.eclipse.gef.EditDomain.keyDown(EditDomain.java:169)
	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPressed(DomainEventDispatcher.java:252)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed(LightweightSystem.java:497)
	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:4195)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1046)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1088)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1084)
	at org.eclipse.swt.widgets.Widget.wmSysKeyDown(Widget.java:2393)
	at org.eclipse.swt.widgets.Control.WM_SYSKEYDOWN(Control.java:5583)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4840)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4913)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	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:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	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:1465)
Comment 3 Eclipse Genie CLA 2021-10-17 15:26:03 EDT
New Gerrit change created: https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.ide/+/186575