diff options
author | Remy Suen | 2010-11-26 22:34:21 +0000 |
---|---|---|
committer | Matthias Sohn | 2010-11-28 22:05:27 +0000 |
commit | 338b3c67df247f805a4b399859f52e1a59d0b14e (patch) | |
tree | a4632768bb49b86f655b1e12e83870374d1d1f9f /org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java | |
parent | f5fa4bf56ce5248c20d4252fa1fc489b6d964db5 (diff) | |
download | egit-338b3c67df247f805a4b399859f52e1a59d0b14e.tar.gz egit-338b3c67df247f805a4b399859f52e1a59d0b14e.tar.xz egit-338b3c67df247f805a4b399859f52e1a59d0b14e.zip |
Fix history page to handle IAdaptables properly
Prevent a ClassCastException from being thrown when asking the
history view to display an input that is not an instance of an
IResource.
Bug: 331257
Change-Id: I453b40c7d99605bcb8ca34662e0905139e107995
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java')
-rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java index 31d0258be6..c7a828ab00 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java @@ -899,7 +899,7 @@ public class GitHistoryPage extends HistoryPage implements RefsChangedListener { .getAdapter(IResource.class); if (resource != null) { RepositoryMapping mapping = RepositoryMapping - .getMapping((IResource) o); + .getMapping(resource); Repository repo = mapping.getRepository(); input = new HistoryPageInput(repo, new IResource[] { resource }); |