leehaut opened a new pull request, #7581:
URL: https://github.com/apache/hop/pull/7581
Fix
```txt
org.apache.hop.pipeline.transforms.execprocess.ExecProcessTest
Error:
org.apache.hop.pipeline.transforms.execprocess.ExecProcessTest.processRow_singleCommandString_capturesOutput
-- Time elapsed: 5.674 s <<< ERROR!
java.lang.NullPointerException: Cannot invoke "Object.toString()" because
"out[1]" is null
at
org.apache.hop.pipeline.transforms.execprocess.ExecProcessTest.processRow_singleCommandString_capturesOutput(ExecProcessTest.java:195)
```
## Summary
- Restore historical `Runtime.exec(String)` whitespace tokenization when
`argumentsInFields` is false.
- #7565 changed `exec(process[0])` to `exec(new String[] {process[0]})`,
which treats the entire command line (e.g. `/bin/echo hop-single`) as the
executable name, so stdout is null and CI fails on Linux.
- Tokenize with `StringTokenizer` (same as the old `Runtime.exec(String)`
behavior) before calling `exec(String[])`, avoiding the deprecated String
overload.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]