Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-10-09 12:35:35 -0400
committerSergey Prigogin2013-10-09 12:37:03 -0400
commitcc789a19791b2b38165a8f4977b3a1428f707d15 (patch)
tree12c8ca90f8ed54029572c3c5828f1d6dfc06c777 /codan/org.eclipse.cdt.codan.ui.cxx
parente72330fe5a3109b3076232c99cca6d2bb92c8768 (diff)
downloadorg.eclipse.cdt-cc789a19791b2b38165a8f4977b3a1428f707d15.tar.gz
org.eclipse.cdt-cc789a19791b2b38165a8f4977b3a1428f707d15.tar.xz
org.eclipse.cdt-cc789a19791b2b38165a8f4977b3a1428f707d15.zip
Fixed an NPE during shutdown.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui.cxx')
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Startup.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Startup.java b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Startup.java
index c31956a4aa..30eae21148 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Startup.java
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Startup.java
@@ -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);

Back to the top