Skip to content

Commit c8d7bd9

Browse files
andreasohlundRaagh
andauthored
prevent loading assemblies when name is empty (#5954) (#6074)
Co-authored-by: Patricio Ferraggi <[email protected]>
1 parent b28dd93 commit c8d7bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NServiceBus.Core/Hosting/Helpers/AssemblyScanner.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public AssemblyScannerResults GetScannableAssemblies()
9292

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

95-
if (platformAssembliesString != null)
95+
if (!string.IsNullOrEmpty(platformAssembliesString))
9696
{
9797
var platformAssemblies = platformAssembliesString.Split(Path.PathSeparator);
9898

0 commit comments

Comments
 (0)