Skip to content

[Service Bus] Allow empty string as sessionId#2823

Merged
ramya-rao-a merged 3 commits into
Azure:masterfrom
ramya-rao-a:empty-string-sessionid
May 11, 2019
Merged

[Service Bus] Allow empty string as sessionId#2823
ramya-rao-a merged 3 commits into
Azure:masterfrom
ramya-rao-a:empty-string-sessionid

Conversation

@ramya-rao-a
Copy link
Copy Markdown
Contributor

@ramya-rao-a ramya-rao-a commented May 11, 2019

Offshoot from #2761

Service Bus considers empty string to be a valid sessionId

This PR updates places in our library that considers a session id with empty string as invalid value.

  • if (sesisonId) is replaced with if (sessionId != undefined)
  • if (!sessionId) is replaced with if (sessionId == undefined)

Please note that a == undefined is the same as a === undefined || a === null
and a != undefined is the same as a !== undefined && a !== null

@ramya-rao-a ramya-rao-a merged commit fc4d154 into Azure:master May 11, 2019
@ramya-rao-a ramya-rao-a deleted the empty-string-sessionid branch May 11, 2019 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants