diff options
author | James Moger <james.moger@gitblit.com> | 2012-01-02 06:21:12 -0800 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-01-02 06:21:12 -0800 |
commit | 0ea17fc294c1bb55a90037a150f4624992c0e9fb (patch) | |
tree | 0b6c6561bcbfd613a813a240a8a2bc560373cf64 /src/com/gitblit | |
parent | ff148dd3af7afa81736c0f8600912fa88099a6b9 (diff) | |
parent | 99721ac4b79ce17bcd5b8247ac59126860b8efb5 (diff) | |
download | gitblit-0ea17fc294c1bb55a90037a150f4624992c0e9fb.tar.gz gitblit-0ea17fc294c1bb55a90037a150f4624992c0e9fb.zip |
Merge pull request #3 from docbobo/master
ActivityPage causes IndexOutOfBoundsException
Diffstat (limited to 'src/com/gitblit')
-rw-r--r-- | src/com/gitblit/utils/ActivityUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/utils/ActivityUtils.java b/src/com/gitblit/utils/ActivityUtils.java index 204fe3c3..d6afd93c 100644 --- a/src/com/gitblit/utils/ActivityUtils.java +++ b/src/com/gitblit/utils/ActivityUtils.java @@ -85,7 +85,7 @@ public class ActivityUtils { // determine commit branch
String branch = objectId;
- if (StringUtils.isEmpty(branch)) {
+ if (StringUtils.isEmpty(branch) && !commits.isEmpty()) {
List<RefModel> headRefs = allRefs.get(commits.get(0).getId());
List<String> localBranches = new ArrayList<String>();
for (RefModel ref : headRefs) {
|