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

Fixed NullReferenceException when StandardFolderProvider is used in a Search provider task #3839

Merged
merged 2 commits into from
Jun 13, 2020

Conversation

daguiler
Copy link
Contributor

@daguiler daguiler commented Jun 11, 2020

Fixes #3838

Summary

Calling the EncryptParameter(string, string) overload instead of the EncryptParameter(string) overload because the latter invokes PortalController.Instance.GetCurrentPortalSettings() which is known to produce a NullReferenceException in the context of a Scheduler task.

@bdukes bdukes added this to the 9.6.2 milestone Jun 12, 2020
@bdukes
Copy link
Contributor

bdukes commented Jun 12, 2020

Thanks!

@daguiler
Copy link
Contributor Author

Guys please don't merge yet, I'll cover this with a unit test shortly.

@daguiler
Copy link
Contributor Author

Done. Here's the added test:

image

Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@valadas valadas merged commit fb4e517 into dnnsoftware:develop Jun 13, 2020
@daguiler daguiler deleted the bugfix/std-folder-provider-nre branch June 13, 2020 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullReferenceException in UrlUtils.EncryptParameter
3 participants