You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Later on in our tests we will use the priming client to get the prepared primings, and attempt to access the rows of the then of the prepared prime using the getRows accessor. This accessor returns an immutable version of the rows.
In 1.0.8, the rows field is an empty list (in the above priming), and the accessor returns an immutable version of the empty list.
In 1.1.2, the rows field is null, and you get a null pointer exception from the attempt to convert the rows to the unmodifiable collection.
One way we can work around this is to prime the query with an empty list of rows.
Is this an intentional API change, or potentially a bug? We noticed the PrimePreparedStore has changed significantly in those versions. in 1.0.8, rows was explicitly initialised to an empty list if it was not supplied.
The text was updated successfully, but these errors were encountered:
We upgraded from 1.0.8 to 1.1.2, and encountered a breaking change that affected us.
As part of our testing, we will create some default prepared statements primes without any rows, e.g.:
Later on in our tests we will use the priming client to get the prepared primings, and attempt to access the rows of the
then
of the prepared prime using thegetRows
accessor. This accessor returns an immutable version of the rows.In 1.0.8, the rows field is an empty list (in the above priming), and the accessor returns an immutable version of the empty list.
In 1.1.2, the rows field is null, and you get a null pointer exception from the attempt to convert the rows to the unmodifiable collection.
One way we can work around this is to prime the query with an empty list of rows.
Is this an intentional API change, or potentially a bug? We noticed the
PrimePreparedStore
has changed significantly in those versions. in 1.0.8, rows was explicitly initialised to an empty list if it was not supplied.The text was updated successfully, but these errors were encountered: