You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alexander Haskell (JIRA)" <ji...@apache.org> on 2016/03/08 22:25:40 UTC
[jira] [Updated] (DIRKRB-539) NullPointerException in
DefaultInternalKrbClient
[ https://issues.apache.org/jira/browse/DIRKRB-539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Haskell updated DIRKRB-539:
-------------------------------------
Attachment: client-npe-fix.patch
This prevents the NPE from occurring.
I also moved the transport member variable into the doRequest() method itself since it is never used between calls anyway. Otherwise it prevents the garbage collector from doing its job.
> NullPointerException in DefaultInternalKrbClient
> ------------------------------------------------
>
> Key: DIRKRB-539
> URL: https://issues.apache.org/jira/browse/DIRKRB-539
> Project: Directory Kerberos
> Issue Type: Bug
> Affects Versions: 1.0.0-RC2
> Reporter: Alexander Haskell
> Assignee: Alexander Haskell
> Attachments: client-npe-fix.patch
>
>
> In the event that KrbNetwork.connect() throws an exception, transport could be left null and causes a NPE in the finally block.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)