ddanielr opened a new pull request, #4212:
URL: https://github.com/apache/accumulo/pull/4212

   Gson returns a null array when `executors` either isn't defined, or is an 
empty string.
   The code then throws an NPE when attempting to iterate through the array.
   
   ```
       ExecutorConfig[] execConfigs =
           new Gson().fromJson(params.getOptions().get("executors"), 
ExecutorConfig[].class);
   
       List<Executor> tmpExec = new ArrayList<>();
       for (ExecutorConfig executorConfig : execConfigs) {
   ```
   This change throws an IllegalStateException before the NPE would occur and 
adds an actionable exception message.
   
   This change is only targeted to `2.1` as this situation is already handled 
in `main`.


-- 
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]

Reply via email to