Skip to content

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