You need to check to see if the ResultSet.next() returnstrue:<br><br>if(resultSet.next()){<br> String value =resultSet.getString("column");<br>}