From a087d557f9920bac8f3d3309677416db292cd926 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Fri, 11 Dec 2015 12:10:43 -0500 Subject: [PATCH] Fix NullPointerException in o.e.c.Randomness --- core/src/main/java/org/elasticsearch/common/Randomness.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/common/Randomness.java b/core/src/main/java/org/elasticsearch/common/Randomness.java index 770b6554cf6..cc0af86cbba 100644 --- a/core/src/main/java/org/elasticsearch/common/Randomness.java +++ b/core/src/main/java/org/elasticsearch/common/Randomness.java @@ -114,7 +114,7 @@ public final class Randomness { private static Random getWithoutSeed() { assert currentMethod == null && getRandomMethod == null : "running under tests but tried to create non-reproducible random"; - if (LOCAL.get() == null) { + if (LOCAL == null) { byte[] bytes = SR.generateSeed(8); long accumulator = 0; for (int i = 0; i < bytes.length; i++) {