1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Fixed an NPE during shutdown.

This commit is contained in:
Sergey Prigogin 2013-10-09 09:35:35 -07:00
parent e72330fe5a
commit cc789a1979

View file

@ -37,6 +37,8 @@ public class Startup implements IStartup {
@Override
public void run() {
IWorkbenchWindow active = workbench.getActiveWorkbenchWindow();
if (active == null)
return; // The workbench is shutting down.
final IWorkbenchPage page = active.getActivePage();
CodanPartListener partListener = new CodanPartListener();
page.addPartListener(partListener);