Do not authenticate image without user

This commit is contained in:
ByteHamster 2018-07-07 09:45:22 +02:00
parent 4831e4d937
commit 37f407dc07
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package de.danoeh.antennapod.core.storage;
import android.database.Cursor;
import android.support.v4.util.ArrayMap;
import android.text.TextUtils;
import android.util.Log;
import java.util.ArrayList;
@ -688,7 +689,7 @@ public final class DBReader {
if (cursor.moveToFirst()) {
String username = cursor.getString(0);
String password = cursor.getString(1);
if (username != null && password != null) {
if (!TextUtils.isEmpty(username) && password != null) {
credentials = username + ":" + password;
} else {
credentials = "";