diff options
author | nosami <jasonimison@gmail.com> | 2019-07-23 15:15:08 +0300 |
---|---|---|
committer | nosami <jasonimison@gmail.com> | 2019-07-26 13:54:59 +0300 |
commit | a2a5c6c8007936ef0c62012b58cb4a18a78ef305 (patch) | |
tree | 588134152daba3b9c0bce338725c300b51a68e61 /Mono.Debugging.Soft/SoftEvaluationContext.cs | |
parent | d21e7e218d368d13cc65473ada7471605843f09e (diff) |
Fix NRE
Diffstat (limited to 'Mono.Debugging.Soft/SoftEvaluationContext.cs')
-rw-r--r-- | Mono.Debugging.Soft/SoftEvaluationContext.cs | 2 |
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; |