@@ -6156,7 +6156,7 @@ static RsslRet _reactorDispatchEventFromQueue(RsslReactorImpl *pReactorImpl, Rss
61566156 pReactorTokenMgntEvent->reactorAuthTokenEvent.statusCode = pTokenSession->httpStatusCode;
61576157
61586158 // The current channel could be a WSB connection that has transitioned to the channel list, so set up the main channel here.
6159- if (pReactorChannel->reactorChannel.pWarmStandbyChInfo != NULL)
6159+ if (pReactorChannel && pReactorChannel ->reactorChannel.pWarmStandbyChInfo != NULL)
61606160 {
61616161 pCallbackChannel = &pReactorChannel->pWarmStandByHandlerImpl->mainReactorChannelImpl.reactorChannel;
61626162 _reactorSetupMainWSBReactorChannel(pCallbackChannel, pReactorChannel);
@@ -6197,7 +6197,7 @@ static RsslRet _reactorDispatchEventFromQueue(RsslReactorImpl *pReactorImpl, Rss
61976197 pReactorTokenMgntEvent->reactorAuthTokenEvent.statusCode = pReactorChannel ? pTokenSession->httpStatusCode : pReactorOAuthCredentialRenewalImpl->httpStatusCode;
61986198
61996199 // The current channel could be a WSB connection that has transitioned to the channel list, so set up the main channel here.
6200- if (pReactorChannel->reactorChannel.pWarmStandbyChInfo != NULL)
6200+ if (pReactorChannel && pReactorChannel ->reactorChannel.pWarmStandbyChInfo != NULL)
62016201 {
62026202 pCallbackChannel = &pReactorChannel->pWarmStandByHandlerImpl->mainReactorChannelImpl.reactorChannel;
62036203 _reactorSetupMainWSBReactorChannel(pCallbackChannel, pReactorChannel);
@@ -6274,7 +6274,7 @@ static RsslRet _reactorDispatchEventFromQueue(RsslReactorImpl *pReactorImpl, Rss
62746274 /* Send login message only when the watchlist is enable.
62756275 Note: Unlike above, this should never be sent in the preferred host case.
62766276 */
6277- if (pReactorChannel->pWatchlist && pReactorChannel->channelRole.ommConsumerRole.pLoginRequest)
6277+ if (pReactorChannel && pReactorChannel ->pWatchlist && pReactorChannel->channelRole.ommConsumerRole.pLoginRequest)
62786278 {
62796279 rsslWatchlistClearProcessMsgOptions(&processOpts);
62806280 processOpts.pRdmMsg = (RsslRDMMsg*)pReactorChannel->channelRole.ommConsumerRole.pLoginRequest;
@@ -6303,7 +6303,7 @@ static RsslRet _reactorDispatchEventFromQueue(RsslReactorImpl *pReactorImpl, Rss
63036303 pReactorTokenMgntEvent->reactorAuthTokenEvent.statusCode = pReactorOAuthCredentialRenewalImpl->httpStatusCode;
63046304
63056305 // The current channel could be a WSB connection that has transitioned to the channel list, so set up the main channel here.
6306- if (pReactorChannel->reactorChannel.pWarmStandbyChInfo != NULL)
6306+ if (pReactorChannel && pReactorChannel ->reactorChannel.pWarmStandbyChInfo != NULL)
63076307 {
63086308 pCallbackChannel = &pReactorChannel->pWarmStandByHandlerImpl->mainReactorChannelImpl.reactorChannel;
63096309 _reactorSetupMainWSBReactorChannel(pCallbackChannel, pReactorChannel);
0 commit comments