adds some null checks, removes old unused webforms files for tree control

This commit is contained in:
Shannon
2013-12-19 11:35:53 +11:00
parent 40988b4655
commit 8656d3e4b9
6 changed files with 179 additions and 265 deletions

View File

@@ -13,8 +13,11 @@ namespace umbraco.uicontrols.TreePicker
{
get
{
if (HttpContext.Current.Request.QueryString["id"] != null)
if (HttpContext.Current != null && HttpContext.Current.Request.QueryString["id"] != null)
{
return TreeUrlGenerator.GetPickerUrl(Constants.Applications.Content, "content") + "&selected=" + HttpContext.Current.Request.QueryString["id"];
}
return TreeUrlGenerator.GetPickerUrl(Constants.Applications.Content, "content");
}