db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2547) possible NullPointerException in client/am/ProductLevel
Date Tue, 12 Feb 2008 17:41:12 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568243#action_12568243

Daniel John Debrunner commented on DERBY-2547:

Is productID being null here correct? With an NPE it's best to first find out why the reference
is null, rather than just handling the case when it is null not to throw an NPE.

> possible NullPointerException in client/am/ProductLevel
> -------------------------------------------------------
>                 Key: DERBY-2547
>                 URL: https://issues.apache.org/jira/browse/DERBY-2547
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions:
>            Reporter: Myrna van Lunteren
>            Assignee: Abhilash T.G
>            Priority: Trivial
> Encountered a NPE that doesn't make it to the application/end-user when debugging test
jdbcapi/DataSourceTest in one of my eclipse workspaces;
> org/apache/derby/client/am/ProductLevel
> constructor; 
>      versionLevel_ = Integer.parseInt(productID.substring(3,5)); 
> NPE because  productID was null

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

View raw message