From f576d1a69b6e302af56899acfa230c971a9a0637 Mon Sep 17 00:00:00 2001 From: exyi Date: Mon, 7 Aug 2017 13:30:48 +0000 Subject: [PATCH] Fixed loading of DebugFilePath in EmbeddedResourceLocation. --- .../ResourceManagement/EmbeddedResourceLocation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotVVM.Framework/ResourceManagement/EmbeddedResourceLocation.cs b/src/DotVVM.Framework/ResourceManagement/EmbeddedResourceLocation.cs index 3e81260c2b..f504612c9d 100644 --- a/src/DotVVM.Framework/ResourceManagement/EmbeddedResourceLocation.cs +++ b/src/DotVVM.Framework/ResourceManagement/EmbeddedResourceLocation.cs @@ -29,7 +29,7 @@ public EmbeddedResourceLocation(Assembly assembly, string name, string debugFile public override Stream LoadResource(IDotvvmRequestContext context) { - var debugPath = Path.Combine(context.Configuration.ApplicationPhysicalPath, DebugFilePath); + var debugPath = DebugFilePath == null ? null : Path.Combine(context.Configuration.ApplicationPhysicalPath, DebugFilePath); return context.Configuration.Debug && debugPath != null && File.Exists(debugPath) ? File.OpenRead(debugPath) : Assembly.GetManifestResourceStream(Name);