Sometimes null
is returned intentionally to account for 0 available instancesSome APIs intentionally return a null
reference to indicate that instances are unavailable. This practice can lead to denial-of-service vulnerabilities when the client code fails to explicitly handle the null
return case.
...