Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use TextUtils.isEmpty when verifying login parameter

  • Loading branch information...
commit 5ad9bb48c4ff2526453a052979612c8ce54858e3 1 parent 3241214
@kevinsawicki kevinsawicki authored
View
3  app/src/main/java/com/github/mobile/ui/issue/AssigneeDialog.java
@@ -17,6 +17,7 @@
import static java.lang.String.CASE_INSENSITIVE_ORDER;
import android.accounts.Account;
+import android.text.TextUtils;
import android.util.Log;
import com.github.mobile.R.string;
@@ -114,7 +115,7 @@ public void execute() {
public User getCollaborator(String login) {
if (collaborators == null)
return null;
- if (login == null || login.length() == 0)
+ if (TextUtils.isEmpty(login))
return null;
return collaborators.get(login);
}
Please sign in to comment.
Something went wrong with that request. Please try again.