Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for possible null value in ScalaTarget's baseDirectory #2164

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

ckipp01
Copy link
Member

@ckipp01 ckipp01 commented Oct 29, 2020

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 of null I just set it to an empty "" which only affects the ordering of the target in the Doctor or tree view.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ckipp01 ckipp01 merged commit 85ff9dc into scalameta:main Oct 29, 2020
@ckipp01 ckipp01 deleted the nullPointer branch October 29, 2020 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants