Fix IndexOutOfBound

This commit is contained in:
Schoumi 2020-07-09 14:37:27 +02:00
parent 955491db2d
commit 35961d75a9
1 changed files with 2 additions and 2 deletions

View File

@ -433,8 +433,8 @@ public class DatabaseManager extends SQLiteOpenHelper {
String[] sourceList = sourcesStr.split("\\|"); String[] sourceList = sourcesStr.split("\\|");
for(String sourceItem : sourceList){ for(String sourceItem : sourceList){
if(!sourceItem.isEmpty()) { if(!sourceItem.isEmpty()) {
System.out.println(sourceItem);
String[] data = sourceItem.split(":"); String[] data = sourceItem.split(":");
if(data.length == 2)
sources.put(data[0], data[1]); sources.put(data[0], data[1]);
} }
} }