hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Reed (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1859) FSInputDataStream.getPos throws null pointer exception when file has been closed
Date Sat, 08 Sep 2007 21:46:29 GMT

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

Benjamin Reed commented on HADOOP-1859:
---------------------------------------

I second everything Raghu said! I was going to say exactly the same, but I see that he has
beat me to it.

> 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
>          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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message