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

Index out of bounds exception when getting enterprise events #187

Closed
danielandefors opened this issue Jan 7, 2016 · 0 comments
Closed

Comments

@danielandefors
Copy link
Contributor

The error occurs in EventLog.getEnterpriseEvents when the position parameter is non-zero and types parameter is an empty array.

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:797)
    at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:253)
    at com.box.sdk.EventLog.getEnterpriseEvents(EventLog.java:89)
@gcurtis gcurtis closed this as completed in 63d238f Jan 7, 2016
gcurtis added a commit that referenced this issue Jan 7, 2016
Added length check on event types array. Closes #187
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

No branches or pull requests

1 participant