Closed RobertHeim closed 1 year ago
Currently the implementation uses code like this:
print(subscriptions.first.subscriptionId);
without guaranteeing that subscriptions is not empty. If it is empty, the .first call raises a NPE. Instead of an exception we would expect empty results.
subscriptions
.first
Currently the implementation uses code like this:
without guaranteeing that
subscriptions
is not empty. If it is empty, the.first
call raises a NPE. Instead of an exception we would expect empty results.