Skip to content

Refactoring commands.common.storage to remove storage management depe… #1950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 16, 2016

Conversation

markcowl
Copy link
Member

…ndency

{
string[] tokens = idFromServer.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries);

return tokens[3];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is public static method - it may fail with index outside the bounds of the array. Could you check that it has 3 elements before accessing it?

markcowl added a commit that referenced this pull request Mar 16, 2016
Refactoring commands.common.storage to remove storage management depe…
@markcowl markcowl merged commit 585b7df into Azure:dev Mar 16, 2016
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.

3 participants