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:
parent
e72330fe5a
commit
cc789a1979
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue