Skip to content

Commit

Permalink
return if there are no rules
Browse files Browse the repository at this point in the history
  • Loading branch information
iamandycohen committed Dec 18, 2014
1 parent ae731cf commit fd3ca94
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ namespace Hi.UrlRewrite.sitecore_modules.Shell.UrlRewrite
public partial class Default : System.Web.UI.Page
{
private Database _db;
private List<RuleResult> _processedResults;

protected void Page_Load(object sender, EventArgs e)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fd3ca94

Please sign in to comment.