Permalink
Browse files

Fixing an exception in PageObjectCacheFunction

  • Loading branch information...
napernik committed Nov 27, 2017
1 parent 0f037a5 commit f78657600bf8d8f813a10f988c4ec77a3dc77183
@@ -147,6 +147,11 @@ private static object EvaluateLazyResult(IEnumerable<XNode> xNodes, FunctionCont
var functionCallResult = functionTreeNode.GetValue(context);
if (functionCallResult != null)
{
if (functionCallResult is XDocument document)
{
functionCallResult = document.Root;
}
resultList.Add(functionCallResult);
if (functionCallResult is XObject || functionCallResult is IEnumerable<XObject>)

0 comments on commit f786576

Please sign in to comment.