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
The point about it being null is that it forced application developers to use the API properly - invoking media API when there is no media is an application bug, it makes no sense to do that, so having the call fail in a harsh way was by design.
Maybe a bespoke exception rather than returning null would be better here.
caprica
changed the title
Revisit MediaApi being null when there is no media
Revisit MediaApi returning null APIs when there is no media
Mar 1, 2022
This is far from ideal and leads to unexpected NullPointerException.
The text was updated successfully, but these errors were encountered: