Skip to content

Commit

Permalink
prevent loading assemblies when name is empty (#5954) (#6074)
Browse files Browse the repository at this point in the history
Co-authored-by: Patricio Ferraggi <[email protected]>
  • Loading branch information
andreasohlund and Raagh authored May 26, 2021
1 parent b28dd93 commit c8d7bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NServiceBus.Core/Hosting/Helpers/AssemblyScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public AssemblyScannerResults GetScannableAssemblies()

var platformAssembliesString = (string)AppDomain.CurrentDomain.GetData("TRUSTED_PLATFORM_ASSEMBLIES");

if (platformAssembliesString != null)
if (!string.IsNullOrEmpty(platformAssembliesString))
{
var platformAssemblies = platformAssembliesString.Split(Path.PathSeparator);

Expand Down

0 comments on commit c8d7bd9

Please sign in to comment.