Uploaded image for project: 'Commons Exec'
  1. Commons Exec
  2. EXEC-40

NPE in DefaultExecutor.setExitValues()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0.1
    • None
    • Ubuntu Linux, Sun Java 1.6.0_13

    Description

      The setExitValues() of DefaultExecutor does not throws a NPE when passed a null argument.
      The documentation says passing a null should disable exit value checking.

      Solution, modify the body to correctly handle nulls.

      public void setExitValues(final int[] values) {
      if (values==null)

      { this.extiValues = null; }

      else

      { this.exitValues = (int[]) values.clone(); }

      }

      Attachments

        Activity

          People

            sgoeschl Siegfried Goeschl
            phenderson Peter Henderson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified