You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ruth Cao (JIRA)" <ji...@apache.org> on 2007/05/09 03:22:15 UTC

[jira] Created: (HARMONY-3826) [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null

[classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null
------------------------------------------------------------------------------------------

                 Key: HARMONY-3826
                 URL: https://issues.apache.org/jira/browse/HARMONY-3826
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Ruth Cao


The following test case throws NullPointerException on Harmony while passes on RI:

public void testReadDouble() throws SQLException {   
        Object[] attributes = new Object[] {null};
       SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
       assertEquals(0, impl.readDouble(), 0);
}

Other readXXX methods have similar problems. 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-3826) [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-3826.
----------------------------------

    Resolution: Fixed

Thanks Ruth.

Patch applied to SQL module at repo revision r537283.

Please check it was applied as you expected.


> [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null
> ------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3826
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3826
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ruth Cao
>         Assigned To: Tim Ellison
>         Attachments: Harmony-3826.diff
>
>
> The following test case throws NullPointerException on Harmony while passes on RI:
> public void testReadDouble() throws SQLException {   
>         Object[] attributes = new Object[] {null};
>        SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
>        assertEquals(0, impl.readDouble(), 0);
> }
> Other readXXX methods have similar problems. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3826) [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null

Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruth Cao updated HARMONY-3826:
------------------------------

    Attachment: Harmony-3826.diff

May somebody pls try this?

> [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null
> ------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3826
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3826
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ruth Cao
>         Attachments: Harmony-3826.diff
>
>
> The following test case throws NullPointerException on Harmony while passes on RI:
> public void testReadDouble() throws SQLException {   
>         Object[] attributes = new Object[] {null};
>        SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
>        assertEquals(0, impl.readDouble(), 0);
> }
> Other readXXX methods have similar problems. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-3826) [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-3826:
------------------------------------

    Assignee: Tim Ellison

> [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null
> ------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3826
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3826
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ruth Cao
>         Assigned To: Tim Ellison
>         Attachments: Harmony-3826.diff
>
>
> The following test case throws NullPointerException on Harmony while passes on RI:
> public void testReadDouble() throws SQLException {   
>         Object[] attributes = new Object[] {null};
>        SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
>        assertEquals(0, impl.readDouble(), 0);
> }
> Other readXXX methods have similar problems. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3826) [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null

Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruth Cao updated HARMONY-3826:
------------------------------

    Patch Info: [Patch Available]

> [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null
> ------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3826
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3826
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ruth Cao
>         Attachments: Harmony-3826.diff
>
>
> The following test case throws NullPointerException on Harmony while passes on RI:
> public void testReadDouble() throws SQLException {   
>         Object[] attributes = new Object[] {null};
>        SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
>        assertEquals(0, impl.readDouble(), 0);
> }
> Other readXXX methods have similar problems. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-3826) [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null

Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruth Cao closed HARMONY-3826.
-----------------------------


Thanks, Tim. The fix looks fine.

> [classlib][sql] SQLInputImpl throws NullPointerException when the param of readXXX is null
> ------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3826
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3826
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ruth Cao
>         Assigned To: Tim Ellison
>         Attachments: Harmony-3826.diff
>
>
> The following test case throws NullPointerException on Harmony while passes on RI:
> public void testReadDouble() throws SQLException {   
>         Object[] attributes = new Object[] {null};
>        SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
>        assertEquals(0, impl.readDouble(), 0);
> }
> Other readXXX methods have similar problems. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.