commit | 63e9a75c1b19c15e5336c59b0212770684b10e98 | [log] [tgz] |
---|---|---|
author | eyuen <eyuen> | Tue Jan 10 16:46:27 2012 +0000 |
committer | eyuen <eyuen> | Tue Jan 10 16:46:27 2012 +0000 |
tree | c5bb10b23a2ab10897f927b90aac8fca18a2786a | |
parent | fd0adc87f608d2c04cfa25f95f28aa86f46f452a [diff] |
[367977] ServerEditorSection's doSave() does not handle a null monitor
diff --git a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/editor/ServerEditorPart.java b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/editor/ServerEditorPart.java index 3229a1f..25bb440 100644 --- a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/editor/ServerEditorPart.java +++ b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/editor/ServerEditorPart.java
@@ -71,6 +71,9 @@ * @see org.eclipse.ui.IEditorPart#doSave(IProgressMonitor) */ public void doSave(IProgressMonitor monitor) { + if (monitor == null) + return; + List<ServerEditorSection> curSections = getSections(); int ticks = 100; monitor.beginTask(Messages.savingTask, curSections.size() * ticks);