Skip to content

Commit

Permalink
add check for ISession before assigning (#3353)
Browse files Browse the repository at this point in the history
Signed-off-by: Billie Simmons <[email protected]>
  • Loading branch information
JillieBeanSim authored Dec 10, 2024
1 parent f510715 commit a205664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/zowe-explorer-api/src/profiles/ProfilesCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ export class ProfilesCache {

public static getProfileSessionWithVscProxy(session: imperative.Session): imperative.Session {
const VsCodeProxySettings = VscSettings.getVsCodeProxySettings();
session.ISession.proxy = VsCodeProxySettings;
if (session.ISession) {
session.ISession.proxy = VsCodeProxySettings;
}
return session;
}

Expand Down

0 comments on commit a205664

Please sign in to comment.