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

Java SDK - IndexOutOfBounds exception thrown when #313

Closed
jimmyjames opened this issue Feb 22, 2024 · 1 comment
Closed

Java SDK - IndexOutOfBounds exception thrown when #313

jimmyjames opened this issue Feb 22, 2024 · 1 comment
Labels
java-sdk Affects the Java/Kotlin SDK

Comments

@jimmyjames
Copy link
Contributor

In OpenFgaClient#writeTransaction(String storeId, ClientWriteRequest request, ClientWriteOptions writeOptions), if the write transactions and delete transactions are null, an IndexOutOfBounds exception is thrown when trying to get the response, because we call get(0):

var futureResponse = this.writeNonTransaction(storeId, transactions.get(0), options);

This issue was discovered in #307.

We should not fail with an IndexOutOfBounds exception in this case.

@jimmyjames
Copy link
Contributor Author

Fixed with #307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java-sdk Affects the Java/Kotlin SDK
Projects
Archived in project
Development

No branches or pull requests

1 participant