diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ExceptionInfo.java	Thu Apr 19 19:16:45 2012 +0200
+++ b/src/org/tmatesoft/hg/internal/ExceptionInfo.java	Thu Apr 19 19:17:31 2012 +0200
@@ -141,7 +141,7 @@
 				sb.append(String.format("%s is not from [%d..%d]", sr, rangeLeftBoundary, rangeRightBoundary));
 			} else {
 				sb.append(getRevisionIndex());
-				if (isRevisionIndexSet()) {
+				if (isRevisionSet()) {
 					sb.append(':');
 					sb.append(getRevision().shortNotation());
 					needNodeid = false;