B2012-315 – fixed problem approving a new procedure

added a null reference check
This commit is contained in:
2012-11-20 16:07:56 +00:00
parent 6b959e09cb
commit 61fcf17624
2 changed files with 6 additions and 2 deletions

View File

@@ -658,7 +658,7 @@ namespace VEPROMS.CSLA.Library
{
get
{
if (this.RevisionVersions.Count == 0) return null;
if (this.RevisionVersions == null || this.RevisionVersions.Count == 0) return null;
VersionInfo latest = this.RevisionVersions[0];
foreach (VersionInfo vi in this.RevisionVersions)
{