ResultSet NullPointerException
问题 I have a stored procedure, I want to call it from JDBC, I got null pointer exception in the line" while (restuls.next()) { My code is: Connection con = Database.getConnection(); CallableStatement callableStatement = null; try { String storedProcedure = "{call getAllCustomerAddresses(?,?,?,?,?,?,?)}"; callableStatement = con.prepareCall(storedProcedure); callableStatement.setInt(1, this.getID()); callableStatement.registerOutParameter(2, java.sql.Types.INTEGER); callableStatement