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
Because it does not only check if str == null but also checks if str.length == 0
(you could also refactor and use a built-in str.isEmpty instead of direct length accessing)