db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernt M. Johnsen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Closed: (DERBY-350) NPE when relative() is called for empty ResultSet
Date Mon, 13 Jun 2005 09:21:46 GMT
     [ http://issues.apache.org/jira/browse/DERBY-350?page=all ]
     
Bernt M. Johnsen closed DERBY-350:
----------------------------------

    Resolution: Duplicate

Duplicate of DERBY-276. The proposed patch for 276 missed the fact that according to JDBC
spec, isBeforeFirst() and isAfterLast() both should return false when the result set is empty.


> NPE when relative() is called for empty ResultSet
> -------------------------------------------------
>
>          Key: DERBY-350
>          URL: http://issues.apache.org/jira/browse/DERBY-350
>      Project: Derby
>         Type: Bug
>   Components: JDBC
>     Reporter: Bernt M. Johnsen
>     Assignee: Bernt M. Johnsen
>     Priority: Minor

>
> relative fails with NPE when ResultSet is empty
> java.lang.NullPointerException
>         at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getRowFromHashTable(ScrollInsensitiveResultSet.java:915)
>         at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getRelativeRow(ScrollInsensitiveResultSet.java:340)
>         at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:366)
> Sane:
> org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED hashRowArray expected
to be non-null
>         at org.apache.derby.iapi.services.sanity.SanityManager.ASSERT(SanityManager.java:121)
>         at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getRowFromHashTable(ScrollInsensitiveResultSet.java:911)
>         at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getRelativeRow(ScrollInsensitiveResultSet.java:340)
>         at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:366)
>         at org.apache.derby.impl.jdbc.EmbedResultSet.relative(EmbedResultSet.java:1840)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message