Fix IndexOutOfBound
This commit is contained in:
parent
955491db2d
commit
35961d75a9
|
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue