You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2014/07/31 22:14:39 UTC

[jira] [Resolved] (CURATOR-130) Some examples may through NPE on end of input

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

Jordan Zimmerman resolved CURATOR-130.
--------------------------------------

    Resolution: Fixed

> 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
>             Fix For: 2.7.0
>
>
> 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)