Skip to content

Commit 4cf085c

Browse files
Add guard for nullptr Cache Factory
Relates-To: OLPEDGE-1050 Signed-off-by: Diachenko Mykahilo <[email protected]>
1 parent 2f5ac53 commit 4cf085c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/performance/MemoryTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ olp::client::OlpClientSettings MemoryTest::CreateCatalogClientSettings() {
133133
client_settings.task_scheduler = task_scheduler;
134134
client_settings.network_request_handler = s_network;
135135
client_settings.proxy_settings = GetLocalhostProxySettings();
136-
client_settings.cache = parameter.cache_factory();
136+
client_settings.cache =
137+
parameter.cache_factory ? parameter.cache_factory() : nullptr;
137138
client_settings.retry_settings.timeout = 1;
138139

139140
return client_settings;

0 commit comments

Comments
 (0)