DATAREDIS-435 - Fix potential NPE in RedisTestProfileValueSource.
This commit is contained in:
@@ -109,6 +109,10 @@ public class RedisTestProfileValueSource implements ProfileValueSource {
|
||||
}
|
||||
|
||||
public static boolean matches(String key, String value) {
|
||||
|
||||
if (INSTANCE == null) {
|
||||
INSTANCE = new RedisTestProfileValueSource();
|
||||
}
|
||||
return INSTANCE.get(key) != null ? INSTANCE.get(key).equals(value) : value == null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user