Browse Source

Fix NullPointerException in o.e.c.Randomness

Jason Tedor 9 years ago
parent
commit
a087d557f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/src/main/java/org/elasticsearch/common/Randomness.java

+ 1 - 1
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++) {