From 35961d75a959b40257f9753d793ffae653ed42ae Mon Sep 17 00:00:00 2001 From: Schoumi Date: Thu, 9 Jul 2020 14:37:27 +0200 Subject: [PATCH] Fix IndexOutOfBound --- .../exodus_privacy/exodusprivacy/manager/DatabaseManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/DatabaseManager.java b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/DatabaseManager.java index cddb213..5b815a2 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/DatabaseManager.java +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/DatabaseManager.java @@ -433,9 +433,9 @@ public class DatabaseManager extends SQLiteOpenHelper { String[] sourceList = sourcesStr.split("\\|"); for(String sourceItem : sourceList){ if(!sourceItem.isEmpty()) { - System.out.println(sourceItem); String[] data = sourceItem.split(":"); - sources.put(data[0], data[1]); + if(data.length == 2) + sources.put(data[0], data[1]); } }