Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java
index a789add46..ec8fadc7c 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java
@@ -379,6 +379,8 @@ class CommitGraphTable {
r.append(d.getId().name());
}
+ if (clipboard == null || clipboard.isDisposed())
+ return;
clipboard.setContents(new Object[] { r.toString() },
new Transfer[] { TextTransfer.getInstance() }, DND.CLIPBOARD);
}
@@ -414,7 +416,8 @@ class CommitGraphTable {
// the commit list is thread safe
synchronized (allCommits) {
for (PlotCommit commit : allCommits)
- commitsMap.put(commit.getId().name(), commit);
+ if (commit != null)
+ commitsMap.put(commit.getId().name(), commit);
}
}

Back to the top