Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
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)
else
{ this.exitValues = (int[]) values.clone(); }}