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.
In
OpenFgaClient#writeTransaction(String storeId, ClientWriteRequest request, ClientWriteOptions writeOptions)
, if the write transactions and delete transactions arenull
, anIndexOutOfBounds
exception is thrown when trying to get the response, because we callget(0)
:This issue was discovered in #307.
We should not fail with an
IndexOutOfBounds
exception in this case.