Skip to content

Commit 7978c63

Browse files
authored
Fix crash
1 parent 008adb4 commit 7978c63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/me/mrnavastar/sqlib/impl/SQLConnection.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public boolean rowExists(DataStore store, int id) {
7171
public List<Integer> findRows(DataStore store, String field, Object value) {
7272
try (Handle h = sql.open()) {
7373
return h.select("SELECT SQLIB_AUTO_ID FROM %s WHERE _%s = ?".formatted(store.toString(), field), value).mapTo(Integer.class).list();
74+
} catch(Exception ignore) {
75+
return new ArrayList<>();
7476
}
7577
}
7678

0 commit comments

Comments
 (0)