From cf41e4b8a2db529882ba01db26ed8c87973650fe Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 9 May 2016 11:34:09 +0000 Subject: [PATCH] Enhanced: null checks and cache refreshes for new folders --- PROMS/Volian.Controls.Library/vlnTreeView.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/vlnTreeView.cs b/PROMS/Volian.Controls.Library/vlnTreeView.cs index de9192b1..f543853f 100644 --- a/PROMS/Volian.Controls.Library/vlnTreeView.cs +++ b/PROMS/Volian.Controls.Library/vlnTreeView.cs @@ -1309,7 +1309,7 @@ namespace Volian.Controls.Library bool retB = true; E_AccStep? actable = 0; StepData sd = ii.FormatStepData; - actable = sd.StepEditData.AcTable; + if (sd != null) actable = sd.StepEditData.AcTable; if (actable == null) actable = 0; return (ba == 0) ? !ii.IsRNOPart && (actable & E_AccStep.AddingPrev) > 0 : @@ -2238,6 +2238,8 @@ namespace Volian.Controls.Library docversion.Save(); tn = new VETreeNode(_LastDocVersionInfo); SelectedNode.Nodes.Add(tn); // add tree node to end of list. + parentfolder.Reset_ChildFolders(); + parentfolder.Reset_FolderDocVersions(); } else dvid = docversion.VersionID; @@ -3630,7 +3632,7 @@ namespace Volian.Controls.Library public void AdjustTree(ItemInfo selectedItem) { // start at the top parent and walk down the nodes to find child - Console.WriteLine("VlnTreeview:AdjustTree"); + if (selectedItem == null) return; VETreeNode node = FindNodeAndExpand(selectedItem); if (node != null) {