Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-26 13:53:04 +0000
committerJean Michel-Lemieux2003-09-26 13:53:04 +0000
commit721859ee84541a4f61d13f401dcba2374f6fed8d (patch)
treed0770b7b41b345e14896e8f61f620bec7a544762
parentd92da3f9419dc829541b898d6684bc562beb3e66 (diff)
downloadeclipse.platform.team-721859ee84541a4f61d13f401dcba2374f6fed8d.tar.gz
eclipse.platform.team-721859ee84541a4f61d13f401dcba2374f6fed8d.tar.xz
eclipse.platform.team-721859ee84541a4f61d13f401dcba2374f6fed8d.zip
Fixed NPE in fetch Job.
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java19
1 files changed, 11 insertions, 8 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 04e157e9a..7d81a96fe 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
@@ -62,6 +62,7 @@ import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
@@ -170,16 +171,18 @@ public class HistoryView extends ViewPart {
}
public IStatus run(IProgressMonitor monitor) {
try {
- entries = remoteFile.getLogEntries(monitor);
- final String revisionId = remoteFile.getRevision();
- tableViewer.getTable().getDisplay().asyncExec(new Runnable() {
- public void run() {
- if(tableViewer != null && ! tableViewer.getTable().isDisposed()) {
- tableViewer.add(entries);
+ if(remoteFile != null) {
+ entries = remoteFile.getLogEntries(monitor);
+ final String revisionId = remoteFile.getRevision();
+ Display.getCurrent().asyncExec(new Runnable() {
+ public void run() {
+ if(tableViewer != null && ! tableViewer.getTable().isDisposed()) {
+ tableViewer.add(entries);
selectRevision(revisionId);
+ }
}
- }
- });
+ });
+ }
return Status.OK_STATUS;
} catch (TeamException e) {
return e.getStatus();

Back to the top