Fixes 27939

[TFS Changeset #71811]
This commit is contained in:
hartvig
2010-07-01 11:46:30 +00:00
parent 1c07347ba7
commit 613783add2

View File

@@ -103,7 +103,7 @@ namespace umbraco.cms.presentation.Trees
return this.FindAll(
delegate(TreeDefinition tree)
{
return (tree.App.alias.ToLower() == appAlias.ToLower());
return (tree.App != null && tree.App.alias.ToLower() == appAlias.ToLower());
}
);
}
@@ -118,7 +118,7 @@ namespace umbraco.cms.presentation.Trees
return this.FindAll(
delegate(TreeDefinition tree)
{
return (tree.App.alias.ToLower() == appAlias.ToLower() && tree.Tree.Initialize);
return (tree.App != null && tree.App.alias.ToLower() == appAlias.ToLower() && tree.Tree.Initialize);
}
);
}