From f5aaaf2b7745a8cb41f2a4128a59c3b90a18135c Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 22 May 2008 12:02:40 +0000 Subject: [PATCH] Fixed a Dummy Transition Bug --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index e32f98d5..5927c0bc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -746,7 +746,8 @@ namespace VEPROMS.CSLA.Library { // Walk up active parents until the parent is not an item ItemInfo tmp = this; - while (tmp.ActiveParent.GetType() != typeof(DocVersionInfo)) tmp = (ItemInfo)tmp.ActiveParent; + while (tmp.ActiveParent != null && tmp.ActiveParent.GetType() != typeof(DocVersionInfo)) + tmp = (ItemInfo)tmp.ActiveParent; return tmp; } }