You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to get a SiteSettingsPage that does not exists as a child to StartPage with the following code var siteSettings = ContentReference.StartPage.GetSingletonPage<SiteSettingsPage>(); it should return null and not throw ArgumentNullException. Source. Reference.
The text was updated successfully, but these errors were encountered:
fremler
changed the title
GetSingletonPage throws ArgumentNullException
GetSingletonPage throws ArgumentNullException if page does not exists.
Apr 30, 2020
When trying to get a
SiteSettingsPage
that does not exists as a child toStartPage
with the following codevar siteSettings = ContentReference.StartPage.GetSingletonPage<SiteSettingsPage>();
it should returnnull
and not throwArgumentNullException
.Source.
Reference.
The text was updated successfully, but these errors were encountered: