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

Fix LocationTree NullPointerException #839

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hamza-vd
Copy link
Contributor

No description provided.

@hamza-vd hamza-vd force-pushed the fix-location-tree-null branch from 51bc366 to b4ca1ad Compare October 12, 2021 14:21

locationTagRepository.addOrUpdate(locationTag);
locationRepository.addOrUpdate(location);
if (location != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this null check necessary? Is there a possibility of any of the returned locations being null?

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, removed it

@coveralls
Copy link

coveralls commented Nov 16, 2021

Coverage Status

Coverage decreased (-0.0004%) to 68.448% when pulling 7ce90e2 on fix-location-tree-null into 427fa79 on master.

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.

4 participants