fixed comparison by reference

This commit is contained in:
Philipp Crocoll 2014-07-07 06:03:16 +02:00
parent 258e769ae7
commit fab45ba25c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class AccessManager
public static ArrayList<String> stringToStringArray(String s) { public static ArrayList<String> stringToStringArray(String s) {
ArrayList<String> strings = new ArrayList<String>(); ArrayList<String> strings = new ArrayList<String>();
if ((s != null) && (s != "")) { if (TextUtils.isEmpty(s) == false) {
try { try {
JSONArray a = new JSONArray(s); JSONArray a = new JSONArray(s);
for (int i = 0; i < a.length(); i++) { for (int i = 0; i < a.length(); i++) {