Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-130

Some examples may throw NPE on end of input

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            randgalt Jordan Zimmerman
            mdrob Mike Drob
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment