Skip to content
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

Fix index out of bounds issue on items #31

Merged
merged 3 commits into from
Jun 8, 2017
Merged

Conversation

niklassaers
Copy link
Contributor

I have a case where items becomes empty, even though p12Data contains data, passwd is correct, and status returns 0. I believe the case is when I'm running as a user who isn't logged in on the system at the moment, because the user it's happening for is "jenkins". Will investigate that further, but the consequence of this is that "newArray.object(at: 0)" would become an index out of bounds error. So this PR tests for that and provides an error instead

Sorry about the indentation-nonsense in the commits.

  • I have submitted a CLA form
  • If applicable, I have updated the documentation accordingly.
  • If applicable, I have added tests to cover my changes.

Not sure why Xcode didn’t do this by default
This is getting embarrasing. How do I make Xcode match the style / use tabs? Missed these two
@billabt billabt merged commit 12da219 into Kitura:master Jun 8, 2017
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