]> iEval git - fonbot.git/commitdiff
Fix detection of empty username or passwords
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 3 Aug 2013 20:25:22 +0000 (23:25 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 3 Aug 2013 20:25:22 +0000 (23:25 +0300)
src/ro/ieval/fonbot/HttpCallExecutableRunnable.java

index 541a673f19b46f8d24ab27c78714a0c5143af08b..4781d6161616e631a23d6489aac92ebf94ac1954 100644 (file)
@@ -139,7 +139,7 @@ public final class HttpCallExecutableRunnable extends ExecutableRunnable{
                        }
                        final String user=PreferenceManager.getDefaultSharedPreferences(context).getString("username", null);
                        final String password=PreferenceManager.getDefaultSharedPreferences(context).getString("password", null);
-                       if(user == null || password == null){
+                       if(user == null || password == null || user.length() == 0 || password.length() == 0){
                                if(callback!=null)
                                        callback.onError(toNonNull(context.getString(user_or_password_not_set)));
                                return;
This page took 0.026206 seconds and 4 git commands to generate.