diff --git a/Hi.UrlRewrite/sitecore modules/Shell/UrlRewrite/Default.aspx.cs b/Hi.UrlRewrite/sitecore modules/Shell/UrlRewrite/Default.aspx.cs index 3cfec8a..99fca43 100644 --- a/Hi.UrlRewrite/sitecore modules/Shell/UrlRewrite/Default.aspx.cs +++ b/Hi.UrlRewrite/sitecore modules/Shell/UrlRewrite/Default.aspx.cs @@ -20,7 +20,6 @@ namespace Hi.UrlRewrite.sitecore_modules.Shell.UrlRewrite public partial class Default : System.Web.UI.Page { private Database _db; - private List _processedResults; protected void Page_Load(object sender, EventArgs e) { @@ -54,11 +53,14 @@ protected void Page_Load(object sender, EventArgs e) { results = rewriter.ProcessRequestUrl(new Uri(txtUrl.Text), inboundRules); - _processedResults = results.ProcessedResults; } + if (results == null) + { + return; + } - resultsRepeater.DataSource = _processedResults; + resultsRepeater.DataSource = results.ProcessedResults; resultsRepeater.DataBind(); var isAbort = results.FinalAction is AbortRequestAction;