4 ms·
Returning null makes "getUser" a "maybeGetUser" function. Like said in TFA that means that any caller might need to check for nullness
by _ZeD_ 3y ago
Returning null makes "getUser" a "maybeGetUser" function.
Like said in TFA that means that any caller might need to check for nullness
- withinboredom 3y agoYes, no matter what, they have to check if there is an actual user if the application can have anonymous users. There’s no way around that.