bugfix
This commit is contained in:
parent
6ebb13d28d
commit
9b7d36ffed
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ public class TreatmentService extends OrmLiteBaseService<DatabaseHelper> {
|
|||
List<Treatment> result = getDao().query(preparedQuery);
|
||||
switch (result.size()) {
|
||||
case 0: return null;
|
||||
case 1: return result.get(1);
|
||||
case 1: return result.get(0);
|
||||
default: throw new RuntimeException("Multiple records with the same pump id found: " + result.toString());
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
|
|
Loading…
Reference in a new issue