Skip to content

Commit

Permalink
Check for creds (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Oct 8, 2024
1 parent 223f731 commit 61a5e33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/DheService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ export class DheService implements IDheService {
);
}

const dheCredentials = this._dheCredentialsCache.get(this.serverUrl)!;
const dheCredentials = this._dheCredentialsCache.get(this.serverUrl);
if (dheCredentials == null) {
logger.error('Failed to get DHE credentials for server:', this.serverUrl);
return null;
}

try {
await dheClient.login(dheCredentials);
Expand Down

0 comments on commit 61a5e33

Please sign in to comment.