[jbosscache-commits] JBoss Cache SVN: r6709 - benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Thu Sep 11 07:46:27 EDT 2008
Author: mircea.markus
Date: 2008-09-11 07:46:27 -0400 (Thu, 11 Sep 2008)
New Revision: 6709
Modified:
benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java
Log:
guard against null values
Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java 2008-09-10 22:18:00 UTC (rev 6708)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java 2008-09-11 11:46:27 UTC (rev 6709)
@@ -97,7 +97,7 @@
long start = System.nanoTime();
buf = (byte[]) cacheWrapper.get(path, sessionEntry);
durationNanos += System.nanoTime() - start;
- totalBytesRead += buf.length;
+ totalBytesRead += buf == null ? 0 : buf.length;
reads++;
}
catch (Throwable e)
More information about the jbosscache-commits
mailing list