Permalink
Browse files

Cuyahoga.Web.Admin.ConnectionEdit it crashes if you try to make a con…

…nection to a standalone module because when it tries to get the current site from the node, but the node is null. Thanks Darryl.
  • Loading branch information...
1 parent 2290d3c commit 81b5cb2d161c3abe2807f9eec52811b0e59ce088 constructor committed Feb 9, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Cuyahoga.Web/Admin/ConnectionEdit.aspx.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
using Cuyahoga.Core.Communication;
@@ -98,7 +99,7 @@ protected void BindCompatibleSections()
if (compatibleModuleTypes.Count > 0)
{
// Retrieve all sections that have the compatible ModuleTypes
- IList compatibleSections = base.SectionService.GetSectionsByModuleTypes(compatibleModuleTypes);
+ IList compatibleSections = base.SectionService.GetSectionsByModuleTypes(compatibleModuleTypes).Cast<Section>().Where(x=>x.Node != null).ToList();
if (compatibleSections.Count > 0)
{

1 comment on commit 81b5cb2

Owner

constructor commented on 81b5cb2 Feb 10, 2011

Fixed Cuyahoga.Web.Admin.ConnectionEdit it crash if you try to make a connection to a standalone module because when it tries to get the current site from the node, but the node is null. Thanks Darryl.

Please sign in to comment.