From 7a5895f990ecf53db8d740bf7b94ef0c7dd9bd86 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 3 Aug 2013 23:25:22 +0300 Subject: [PATCH] Fix detection of empty username or passwords --- src/ro/ieval/fonbot/HttpCallExecutableRunnable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java b/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java index 541a673..4781d61 100644 --- a/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java +++ b/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java @@ -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; -- 2.39.2