Fix detection of empty username or passwords
[fonbot.git] / 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.010347 seconds and 4 git commands to generate.