Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 1190f0a

Browse files
fix NRE when trying to decompile in a debugging session with dynamic/in-memory assemblies
1 parent a0f669f commit 1190f0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Main/SharpDevelop/Dom/AssemblyModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public IEntityModelContext Context {
6868

6969
public FileName Location {
7070
get {
71-
if (context != null) {
71+
if (context != null && !string.IsNullOrEmpty(context.Location)) {
7272
return new FileName(context.Location);
7373
}
7474
return null;

0 commit comments

Comments
 (0)