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

Patch request for phone fix #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rickardliljeberg
Copy link

If we first add a "work" phone number all worked well.

Now howver we add a "mobile" number with a patch request. It would then see that we had any numbers at all since before, then it would try to look up a number of type "mobile" (however only number of type "work" exists) so it would return null.

A few lines further down it would assume phonNumber is a valid object which it's not.

If user already had phone number of a type, say "work" and then got another number added of type "mobile" the code would crash during the patch request.
@marcusca10 marcusca10 linked an issue Jan 19, 2022 that may be closed by this pull request
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.

Patch phone numbers triggers object null reference exception
1 participant