[ 
https://issues.apache.org/jira/browse/CURATOR-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14081379#comment-14081379
 ] 

ASF GitHub Bot commented on CURATOR-130:
----------------------------------------

GitHub user madrob opened a pull request:

    https://github.com/apache/curator/pull/28

    CURATOR-130 Add null check to input processing.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/madrob/curator CURATOR-130

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/curator/pull/28.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #28
    
----
commit f5767c8909d25761fcc5ed1a8f462fb8f0533487
Author: Mike Drob <md...@cloudera.com>
Date:   2014-07-31T20:10:17Z

    CURATOR-130 Add null check to input processing.

----


> Some examples may through NPE on end of input
> ---------------------------------------------
>
>                 Key: CURATOR-130
>                 URL: https://issues.apache.org/jira/browse/CURATOR-130
>             Project: Apache Curator
>          Issue Type: Bug
>            Reporter: Mike Drob
>            Assignee: Jordan Zimmerman
>            Priority: Minor
>
> Some of the examples use {{in.readLine().trim()}} without checking the 
> results of the {{readLine()}} call. This can cause an NPE since it may return 
> {{null}} on end of input, e.g. EOF or Ctrl-D.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to