Fixed potential null pointer exception

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-05-31 14:38:46 +02:00
parent 99075e0398
commit 07a2cf16f9

View File

@ -29,7 +29,7 @@ public class ClientThread extends Thread {
while(true) {
try {
int taid = beginTransaction();
int numberOfWrites = ThreadLocalRandom.current().nextInt(0, 10);
int numberOfWrites = ThreadLocalRandom.current().nextInt(1, 11);
for (int i = 0; i < numberOfWrites; ++i) {
write(taid);
}