Add missing null check preventing setup of the database

This commit is contained in:
Gabriel Ngandu-Biseba 2025-04-03 15:00:34 +02:00
parent 6cc26907d3
commit 5d2d261278

View File

@ -202,7 +202,7 @@ class Database {
}
dbConfig.caFilePath = dataCaFilePath;
}
if (dbConfig.caFilePath.startsWith(temporaryDirectoryPath)) {
if (dbConfig.caFilePath && dbConfig.caFilePath.startsWith(temporaryDirectoryPath)) {
dbConfig.caFilePath = undefined;
}
dbConfig.ssl = undefined;