修复空指针问题

This commit is contained in:
redkale
2023-08-07 17:57:24 +08:00
parent 3e2a8c932e
commit 7fa66930a4

View File

@@ -79,7 +79,8 @@ public final class CacheMemorySource extends AbstractCacheSource {
}
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