Account for possible null value in ScalaTarget's baseDirectory #2164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I discovered this while playing around with the Mill BSP support since some of the build targets don't always have the
baseDirectory
set as it can be absent according to the spec. This was throwing a null pointer exception when we then tried to order by the base dir in the Doctor. In the case ofnull
I just set it to an empty""
which only affects the ordering of the target in the Doctor or tree view.