Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Minor BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
juileetikekar committed Oct 10, 2023
1 parent 07c1e21 commit 1b2f24d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AasxCsharpLibrary/Extensions/ExtendEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,9 @@ public static IConceptDescription FindConceptDescriptionById(
if (string.IsNullOrEmpty(cdId))
return null;

if (env.ConceptDescriptions == null || env.ConceptDescriptions.Count == 0)
return null;

var conceptDescription = env.ConceptDescriptions.Where(c => c.Id.Equals(cdId)).FirstOrDefault();
return conceptDescription;
}
Expand Down

0 comments on commit 1b2f24d

Please sign in to comment.