You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a file that is already committed and later becomes a part of .gitignore, this file creates a null pointer exception in spotless when used with ratchetFrom.
This happens because workingTreeIterator evaluates to null (here) for these files.
This is an exceptional case so maybe by adding a null check, we will ignore these files?
I created a file Wow.js inside a package useless (commit)
In a later commit I gitignored this package (names useless) (commit).
Now even though the package is git ignored the file Wow.java will always be there as it was already committed and will create problems for spotless when used with ratchetFrom.
Now if I add spotless it to the project, spotlessCheck fails with a null pointer exception due to this file. (commit)