[jbosstools-issues] [JBoss JIRA] (JBIDE-23758) Avoid caught NPE in wst StopAction by providing an empty list instead of null
Martin Malina (JIRA)
issues at jboss.org
Mon Feb 6 07:29:00 EST 2017
[ https://issues.jboss.org/browse/JBIDE-23758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Malina closed JBIDE-23758.
---------------------------------
This is a small enough fix that I believe no special testing is necessary. But Aurelien can check this later :)
> Avoid caught NPE in wst StopAction by providing an empty list instead of null
> -----------------------------------------------------------------------------
>
> Key: JBIDE-23758
> URL: https://issues.jboss.org/browse/JBIDE-23758
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.4.2.Final
> Reporter: Aurélien Pupier
> Assignee: Rob Stryker
> Fix For: 4.4.3.AM2
>
>
> when starting JBDS, there is a silent caught NPE in AsbtractServerAction.selectionChanged because org.jboss.ide.eclipse.as.ui.actions.AbstractServerActionDelegate$4 is returning null instead of an empty selection
> {noformat}
> Thread [main] (Suspended (exception NullPointerException))
> owns: RunnableLock (id=138)
> StopAction(AbstractServerAction).selectionChanged(IStructuredSelection) line: 75
> StopAction.<init>(Shell, ISelectionProvider) line: 36
> StopServerActionDelegate.init(IWorkbenchWindow) line: 24
> WWinPluginAction.initDelegate() line: 187
> WWinPluginAction(PluginAction).createDelegate() line: 125
> WWinPluginAction.refreshActionList() line: 167
> AbstractUIPlugin$1.run() line: 482
> RunnableLock.run() line: 35
> UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 182
> Display.runAsyncMessages(boolean) line: 4203
> Display.readAndDispatch() line: 3819
> PartRenderingEngine$4.run() line: 1121
> Realm.runWithDefault(Realm, Runnable) line: 336
> PartRenderingEngine.run(MApplicationElement, IEclipseContext) line: 1022
> E4Workbench.createAndRunUI(MApplicationElement) line: 150
> Workbench$5.run() line: 687
> Realm.runWithDefault(Realm, Runnable) line: 336
> Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 604
> PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 148
> IDEApplication.start(IApplicationContext) line: 138
> EclipseAppHandle.run(Object) line: 196
> EclipseAppLauncher.runApplication(Object) line: 134
> EclipseAppLauncher.start(Object) line: 104
> EclipseStarter.run(Object) line: 388
> EclipseStarter.run(String[], Runnable) line: 243
> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
> NativeMethodAccessorImpl.invoke(Object, Object[]) line: 62
> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
> Method.invoke(Object, Object...) line: 498
> Main.invokeFramework(String[], URL[]) line: 673
> Main.basicRun(String[]) line: 610
> Main.run(String[]) line: 1519
> Main.main(String[]) line: 1492
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list