Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-02 21:32:33 -0400
committerMichael Valenta2004-05-02 21:32:33 -0400
commit2a3a7045de3d4c16539c4551ab4efb1d618e0001 (patch)
tree5ac12a931d7b8bc2440f7b57b4419cfb910263bd
parent4e36d4a2fcf1134dc969dcfb6435fa266e012b03 (diff)
downloadeclipse.platform.team-2a3a7045de3d4c16539c4551ab4efb1d618e0001.tar.gz
eclipse.platform.team-2a3a7045de3d4c16539c4551ab4efb1d618e0001.tar.xz
eclipse.platform.team-2a3a7045de3d4c16539c4551ab4efb1d618e0001.zip
55942: NPE if shutdown during checkout
-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