Spring-shell along with spring-boot NullPointerException
There are many open issues on this field right now. One of them is your same issue but specific for macOs, i do not have windows, but perhaps you can reproduce it same way and comment on that jira.
You can check it here:
If you want to use it, you should return to an older version better 🙂