Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 8e523b2

Browse files
committed
Fixed NullReferenceException.
1 parent d00b680 commit 8e523b2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

NetworkSanity/NetworkSanity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class BuildInfo
1717
public const string Name = "NetworkSanity";
1818
public const string Author = "Requi";
1919
public const string Company = null;
20-
public const string Version = "1.1.5";
20+
public const string Version = "1.1.6";
2121
public const string DownloadLink = "https://github.com/RequiDev/NetworkSanity/";
2222
}
2323

NetworkSanity/Sanitizers/VrcEventSanitizer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ private bool IsRpcBad(EventData eventData)
9797
return true;
9898
}
9999

100+
if (obj == null)
101+
return false;
102+
103+
100104
var evtLogEntry = obj.TryCast<VRC_EventLog.EventLogEntry>();
101105

102106
if (evtLogEntry.field_Private_Int32_1 != eventData.Sender)

0 commit comments

Comments
 (0)