Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-10-07 13:06:40 +0000
committerJean Michel-Lemieux2003-10-07 13:06:40 +0000
commit1582accfa005ddc1faa9bb56d391f051013dae88 (patch)
tree6f67e6feb4d20b558905e9bbb7b383a1b417d9f8
parenta0aa0d3d2e7f314f000fa927e99dbfc3ee67bdac (diff)
downloadeclipse.platform.team-1582accfa005ddc1faa9bb56d391f051013dae88.tar.gz
eclipse.platform.team-1582accfa005ddc1faa9bb56d391f051013dae88.tar.xz
eclipse.platform.team-1582accfa005ddc1faa9bb56d391f051013dae88.zip
Fixed case where editors are closed and current page doesn't have an editor.
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
index 33d483347..52d68217c 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
@@ -709,7 +709,7 @@ public class HistoryView extends ViewPart {
*/
protected void editorActivated(IEditorPart editor) {
// Only fetch contents if the view is shown in the current page.
- if (!isLinkingEnabled() || !checkIfPageIsVisible()) {
+ if (editor == null || !isLinkingEnabled() || !checkIfPageIsVisible()) {
return;
}
IEditorInput input = editor.getEditorInput();
@@ -891,10 +891,7 @@ public class HistoryView extends ViewPart {
// if turning linking on, update the selection to correspond to the active editor
if (enabled) {
- IEditorPart editor = getSite().getPage().getActiveEditor();
- if (editor != null) {
- editorActivated(editor);
- }
+ editorActivated(getSite().getPage().getActiveEditor());
}
}

Back to the top