OSDN Git Service

pull req rewritten. whitespace issues in original fix.
authorKoushik Dutta <koushd@gmail.com>
Tue, 26 Feb 2013 03:26:12 +0000 (19:26 -0800)
committerKoushik Dutta <koushd@gmail.com>
Tue, 26 Feb 2013 03:26:12 +0000 (19:26 -0800)
https://github.com/koush/Superuser/pull/10

Superuser/src/com/koushikdutta/superuser/util/Settings.java

index daa66e4..596c398 100755 (executable)
@@ -167,7 +167,7 @@ public class Settings {
         // 10^n possible values to brute force, where N is generally
         // 4. Ie, 10000. Yay, security theater. This really ought
         // to be a password.
-        if (value == null || value.length() == 0)
+        if (TextUtils.isEmpty(value))
             return null;
         try {
             MessageDigest digester = MessageDigest.getInstance("MD5");