fixed potential error

This commit is contained in:
SPRINX0\prochazka
2025-08-14 17:05:56 +02:00
parent bb9a559b80
commit 30dbb23330

View File

@@ -66,7 +66,7 @@ async function tediousConnect(storedConnection) {
const authentication = await getAuthentication(storedConnection);
return new Promise((resolve, reject) => {
const [host, instance] = server.split('\\');
const [host, instance] = (server || '').split('\\');
const connectionOptions = {
instanceName: instance,
encrypt: !!ssl || authType == 'msentra' || authType == 'azureManagedIdentity',