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

Some examples may throw NPE on end of input

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: