Skip to content

Commit

Permalink
Fixed loading of DebugFilePath in EmbeddedResourceLocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Aug 7, 2017
1 parent c77fe97 commit f576d1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f576d1a

Please sign in to comment.