Skip to content

Commit

Permalink
DockerHub BugFix when registry is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
juileetikekar committed Sep 8, 2023
1 parent 535658c commit 30ef71d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,14 @@ public void InitRegistry(List<AasxCredentialsEntry> cList, DateTime timestamp, b

AasxServer.Program.initializingRegistry = false;

Console.WriteLine($"Registry initialization complete.{aasRegistry.SubmodelElements.Count}");
if (aasRegistry != null && aasRegistry.SubmodelElements != null)
{
Console.WriteLine($"Registry initialization complete.{aasRegistry.SubmodelElements.Count}");
}
else
{
Console.WriteLine($"Registry is empty");
}
}

#region PrivateMethods
Expand Down

0 comments on commit 30ef71d

Please sign in to comment.