Skip to content

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

Merged
valadas merged 2 commits intodnnsoftware:developfrom
daguiler:bugfix/std-folder-provider-nre
Jun 13, 2020
Merged

Fixed NullReferenceException when StandardFolderProvider is used in a Search provider task#3839
valadas merged 2 commits intodnnsoftware:developfrom
daguiler:bugfix/std-folder-provider-nre

Conversation

@daguiler
Copy link
Copy Markdown
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
Copy Markdown
Contributor

bdukes commented Jun 12, 2020

Thanks!

@daguiler
Copy link
Copy Markdown
Contributor Author

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

@daguiler
Copy link
Copy Markdown
Contributor Author

Done. Here's the added test:

image

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