Skip to content

Commit

Permalink
add missing nullcheck (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezor authored Jul 5, 2024
1 parent 88a8aae commit cfe89de
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ public async Task InitRegistry(List<AasxCredentialsEntry> cList, DateTime timest
{
foreach (var env in Program.env)
{
// Keep this null check as the env is initialized with 1000 null elements
if (env == null)
{
continue;
}

var aas = env.AasEnv?.AssetAdministrationShells?[0];
if (aas?.IdShort != "REGISTRY")
{
Expand Down

0 comments on commit cfe89de

Please sign in to comment.