Boris Prüßmann
2012-01-02 99721ac4b79ce17bcd5b8247ac59126860b8efb5
Fixed IndexOutOfBoundsException that occurs when a repository doesn't
have commits within the requested time range.
1 files modified
2 ■■■ changed files
src/com/gitblit/utils/ActivityUtils.java 2 ●●● patch | view | raw | blame | history
src/com/gitblit/utils/ActivityUtils.java
@@ -85,7 +85,7 @@
                // 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) {