Fixing that a request to an RSS feed with the empty "projection" query string parameter caused exception.

This commit is contained in:
Lombiq
2014-10-08 22:36:15 +02:00
committed by Zoltán Lehóczky
parent 772ba66622
commit ecd1f2e1b0

View File

@@ -39,7 +39,7 @@ namespace Orchard.Projections.StandardQueries {
public void Execute(FeedContext context) {
var projectionId = context.ValueProvider.GetValue("projection");
if (projectionId == null)
if (projectionId == null || String.IsNullOrEmpty(projectionId.AttemptedValue))
return;
var limitValue = context.ValueProvider.GetValue("limit");