修复空指针问题
This commit is contained in:
@@ -79,7 +79,8 @@ public final class CacheMemorySource extends AbstractCacheSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean acceptsConf(AnyValue config) {
|
public static boolean acceptsConf(AnyValue config) {
|
||||||
return config.getValue(CACHE_SOURCE_NODES).startsWith("memory:");
|
String nodes = config.getValue(CACHE_SOURCE_NODES);
|
||||||
|
return nodes != null && nodes.startsWith("memory:");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user