[ 
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: 10.3.1.4
>            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.

Reply via email to