From a2056649a3515e7372ffa95a227a23722ceb15e4 Mon Sep 17 00:00:00 2001 From: Billie Simmons Date: Tue, 10 Dec 2024 13:28:36 -0500 Subject: [PATCH] add check for ISession before assigning (#3353) Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com> --- packages/zowe-explorer-api/src/profiles/ProfilesCache.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts b/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts index 1e2099224f..e57067336a 100644 --- a/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts +++ b/packages/zowe-explorer-api/src/profiles/ProfilesCache.ts @@ -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; }