Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornosami <jasonimison@gmail.com>2019-07-23 15:15:08 +0300
committernosami <jasonimison@gmail.com>2019-07-26 13:54:59 +0300
commita2a5c6c8007936ef0c62012b58cb4a18a78ef305 (patch)
tree588134152daba3b9c0bce338725c300b51a68e61 /Mono.Debugging.Soft/SoftEvaluationContext.cs
parentd21e7e218d368d13cc65473ada7471605843f09e (diff)
Fix NRE
Diffstat (limited to 'Mono.Debugging.Soft/SoftEvaluationContext.cs')
-rw-r--r--Mono.Debugging.Soft/SoftEvaluationContext.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Debugging.Soft/SoftEvaluationContext.cs b/Mono.Debugging.Soft/SoftEvaluationContext.cs
index 3e1599e..8e96dbd 100644
--- a/Mono.Debugging.Soft/SoftEvaluationContext.cs
+++ b/Mono.Debugging.Soft/SoftEvaluationContext.cs
@@ -52,7 +52,7 @@ namespace Mono.Debugging.Soft
string method = frame.Method.Name;
if (frame.Method.DeclaringType != null)
method = frame.Method.DeclaringType.FullName + "." + method;
- var sourceLink = session.GetPdbData (frame.Method).GetSourceLink(frame.FileName);
+ var sourceLink = session.GetPdbData (frame.Method)?.GetSourceLink(frame.FileName);
var location = new DC.SourceLocation (method, frame.FileName, frame.LineNumber, frame.ColumnNumber, frame.EndLineNumber, frame.EndColumnNumber, frame.Location.SourceFileHash, sourceLink);
string language;