You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/06/04 17:04:39 UTC

svn commit: r781797 - /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/CachedRandomAccesDataProvider.java

Author: monteith
Date: Thu Jun  4 17:04:39 2009
New Revision: 781797

URL: http://svn.apache.org/viewvc?rev=781797&view=rev
Log:
Fix problem with some tests that have minimal size file.

Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/CachedRandomAccesDataProvider.java

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/CachedRandomAccesDataProvider.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/CachedRandomAccesDataProvider.java?rev=781797&r1=781796&r2=781797&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/CachedRandomAccesDataProvider.java (original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/datalayer/CachedRandomAccesDataProvider.java Thu Jun  4 17:04:39 2009
@@ -307,7 +307,7 @@
 		
 		if (line == null) {
 			throw new IOException("Cannot resolve location "+current);
-		} else if (line.length < offset) {
+		} else if (line.length <= offset) {
 			throw new IOException("Location "+current+" has offset "+offset+" which is greater than the line size "+line.length);
 		}