Skip to content

Commit

Permalink
npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Jul 8, 2024
1 parent b09dcee commit 6a56e75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public MapExtractor(String keyName, String valueName) {
@Override
public Map<String, String> extractData(ResultSet rs) throws SQLException, DataAccessException {
Map<String, String> map = new HashMap<>();
while (rs.next()) {
while (rs.next() && rs.getString(keyName) != null) {
map.put(rs.getString(keyName), rs.getString(valueName));
}
return map;
Expand Down

0 comments on commit 6a56e75

Please sign in to comment.