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 an issue with possible access of null serverobject in FieldUtilities.FixLookupField #310

Merged
merged 1 commit into from
May 20, 2021

Conversation

NickSevens
Copy link

@NickSevens NickSevens commented May 6, 2021

Fixes #309.

Alternative would be to change ListExtensions.GetListByUrl to return null when ServerObjectIsNull == true, as I assume this issue could occur on other places as well... That would however be more of an impact than wanted I assume. :)

Not sure what's the best approach?

@NickSevens
Copy link
Author

@jansenbe any feedback you can give on this?

@jansenbe jansenbe self-assigned this May 20, 2021
jansenbe added a commit that referenced this pull request May 20, 2021
@jansenbe jansenbe merged commit c288123 into pnp:dev May 20, 2021
@NickSevens NickSevens deleted the bugfix/fixlookupfield-nullref branch May 20, 2021 10:45
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.

FieldUtilities.FixLookupField throws exception when Lookup's "List" attribute is not set
2 participants