You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Harsh J (JIRA)" <ji...@apache.org> on 2011/07/16 23:27:59 UTC

[jira] [Resolved] (HADOOP-1859) FSInputDataStream.getPos throws null pointer exception when file has been closed

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

Harsh J resolved HADOOP-1859.
-----------------------------

    Resolution: Invalid

This one looks irrelevant now. Please see my earlier comment. Do feel free to reopen if it still applies after all these years of refactoring though.

> FSInputDataStream.getPos throws null pointer exception when file has been closed
> --------------------------------------------------------------------------------
>
>                 Key: HADOOP-1859
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1859
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Benjamin Reed
>
> If an FSInputDataStream object has been closed, invoking getPos() will cause a NullPointerException. This is because BufferedInputStream.close() sets in to null, and Buffer.getPos() does not check for in being null.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira