comparison src/org/tmatesoft/hg/internal/ExceptionInfo.java @ 439:2bf6f917a7e5

NPE when revisionIndex is set but not revision
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 19 Apr 2012 19:17:31 +0200
parents 9c9c442b5f2e
children cdd53e5884ae
comparison
equal deleted inserted replaced
438:0d128e09d70f 439:2bf6f917a7e5
139 sr = String.valueOf(getRevisionIndex()); 139 sr = String.valueOf(getRevisionIndex());
140 } 140 }
141 sb.append(String.format("%s is not from [%d..%d]", sr, rangeLeftBoundary, rangeRightBoundary)); 141 sb.append(String.format("%s is not from [%d..%d]", sr, rangeLeftBoundary, rangeRightBoundary));
142 } else { 142 } else {
143 sb.append(getRevisionIndex()); 143 sb.append(getRevisionIndex());
144 if (isRevisionIndexSet()) { 144 if (isRevisionSet()) {
145 sb.append(':'); 145 sb.append(':');
146 sb.append(getRevision().shortNotation()); 146 sb.append(getRevision().shortNotation());
147 needNodeid = false; 147 needNodeid = false;
148 } 148 }
149 } 149 }