Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java
index 8c0f149f9..22b0c9fb4 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java
@@ -186,6 +186,10 @@ public abstract class CVSOperation extends TeamOperation {
buttons = new String[] {IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL};
}
Shell displayShell = getShell();
+ if (displayShell == null) {
+ // We couldn't get a shell (perhaps due to shutdown)
+ return false;
+ }
final MessageDialog dialog =
new MessageDialog(displayShell, title, null, msg, MessageDialog.QUESTION, buttons, 0);

Back to the top