You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Junping Du (JIRA)" <ji...@apache.org> on 2017/09/11 05:22:02 UTC

[jira] [Updated] (HADOOP-11095) How about Null check when closing inputstream object in JavaKeyStoreProvider#() ?

     [ https://issues.apache.org/jira/browse/HADOOP-11095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Junping Du updated HADOOP-11095:
--------------------------------
    Target Version/s: 2.8.3  (was: 2.8.1)

> How about Null check when closing inputstream object in JavaKeyStoreProvider#() ?
> ---------------------------------------------------------------------------------
>
>                 Key: HADOOP-11095
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11095
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: skrho
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-11095_001.patch
>
>
> In the finally block:
>           InputStream is = pwdFile.openStream();
>           try {
>             password = IOUtils.toCharArray(is);
>           } finally {
>             is.close();
>           }
>           
> How about Null check when closing inputstream object?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org