Skip to content

Commit d2d623a

Browse files
author
Michael DeRoy
committed
Fix null ptr exception
1 parent 4606aab commit d2d623a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

UnityMixedCallstackFilter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void OnLoadComplete(DkmProcess process, DkmWorkList workList, DkmEventDes
2929
{
3030
IVsOutputWindow outWindow = Package.GetGlobalService(typeof(SVsOutputWindow)) as IVsOutputWindow;
3131
Guid debugPaneGuid = VSConstants.GUID_OutWindowDebugPane;
32-
outWindow.GetPane(ref debugPaneGuid, out _debugPane);
32+
outWindow?.GetPane(ref debugPaneGuid, out _debugPane);
3333
}
3434
}
3535

@@ -126,7 +126,7 @@ private static void RefreshStackData(int pid)
126126
}
127127
catch (Exception ex)
128128
{
129-
_debugPane.OutputString("Unable to read dumped pmip file: " + ex.Message + "\n");
129+
_debugPane?.OutputString("Unable to read dumped pmip file: " + ex.Message + "\n");
130130
DisposeStreams();
131131
_enabled = false;
132132
return;
@@ -156,7 +156,7 @@ private static void RefreshStackData(int pid)
156156
}
157157
catch (Exception ex)
158158
{
159-
_debugPane.OutputString("Unable to read dumped pmip file: " + ex.Message + "\n");
159+
_debugPane?.OutputString("Unable to read dumped pmip file: " + ex.Message + "\n");
160160
DisposeStreams();
161161
_enabled = false;
162162
return;

source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="UnityMixedCallstack.mderoy.1bc395e8-c1ea-4a2d-8a37-19e7f0c302b9" Version="2.2" Language="en-US" Publisher="Jb Evain, Michael DeRoy, Jonathan Chambers" />
4+
<Identity Id="UnityMixedCallstack.mderoy.1bc395e8-c1ea-4a2d-8a37-19e7f0c302b9" Version="2.3" Language="en-US" Publisher="Jb Evain, Michael DeRoy, Jonathan Chambers" />
55
<DisplayName>Unity Mixed Callstack</DisplayName>
66
<Description xml:space="preserve">Visual Studio native debugger extension to help debug native applications using Mono. Originally developed by Jb Evain, Updated for Unity by Michael DeRoy and Jonathan Chambers</Description>
77
</Metadata>

0 commit comments

Comments
 (0)