diff --git a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java index 140ba4eedb..e6a781c80c 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java +++ b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java @@ -1068,7 +1068,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { where.eq("pumpId", extendedBolus.pumpId); PreparedQuery preparedQuery = queryBuilder.prepare(); List trList = getDaoExtendedBolus().query(preparedQuery); - if (trList.size() > 0) { + if (trList.size() > 1) { log.error("EXTENDEDBOLUS: Multiple records found for pumpId: " + extendedBolus.pumpId); return false; }