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

Dev/nich/point equals null bug #418

Merged

Conversation

NishantChandrashekhar
Copy link
Contributor

@NishantChandrashekhar NishantChandrashekhar commented Jun 8, 2023

What type of PR is this? (check all applicable)

  • ♻️ Refactor
  • ✨ Feature
  • [x ] 🐛 Bug Fix
  • 👷 Optimization
  • 📝 Documentation Update
  • 🔖 Release
  • 🚩 Other

Description

Previously, the equals and the == operator of the Point3 didn't handle the null input case, ie if one (or both) of the inputs were null then the function would throw an error. I have modified the function to return false when either of the inputs is null or if both the inputs are null (the second scenario is what I have observed when I compared two string variables having null values).

This PR Fixes #417 .

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📓 docs
  • [x ] 🙅 no documentation needed

@d3ssy
Copy link
Collaborator

d3ssy commented Jun 16, 2023

Thanks @NishantChandrashekhar! Looks good to go

@d3ssy d3ssy merged commit 76819e0 into GSharker:master Jun 16, 2023
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.

Exception on Point3 == null
2 participants