Skip to content

Fix LocationTree NullPointerException#839

Open
hamza-vd wants to merge 6 commits intomasterfrom
fix-location-tree-null
Open

Fix LocationTree NullPointerException#839
hamza-vd wants to merge 6 commits intomasterfrom
fix-location-tree-null

Conversation

@hamza-vd
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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