From 9961799771af899395fe9c19bdb437974aa74d86 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 6 May 2020 17:48:18 -0400 Subject: [PATCH] Fix NullReferenceException --- src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs | 2 +- src/Tgstation.Server.Host/NativeMethods.cs | 2 +- tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs b/src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs index b3a22fdaf0..a1426d7663 100644 --- a/src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs +++ b/src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs @@ -27,7 +27,7 @@ namespace Tgstation.Server.Host.IO * sure it works in SOME cases * i.e. win10 1803+ and IN DEVELOPER MODE * other times it throws ERROR_INVALID_PARAMETER - * but the fucking worst is there is some configuration of windows that accept the argument and allow the function to succeed + * but the fucking worst is there are some configurations of windows that accept the argument and allow the function to succeed * BUT IT DOESN'T CREATE THE FUCKING LINK * I AM NOT DEBUGGING THAT SHIT AGAIN AHHH diff --git a/src/Tgstation.Server.Host/NativeMethods.cs b/src/Tgstation.Server.Host/NativeMethods.cs index 98a92c2eac..afc7211071 100644 --- a/src/Tgstation.Server.Host/NativeMethods.cs +++ b/src/Tgstation.Server.Host/NativeMethods.cs @@ -5,7 +5,7 @@ using System.Text; namespace Tgstation.Server.Host { /// - /// Native methods used by the code + /// Native Windows methods used by the code /// #pragma warning disable SA1600 #pragma warning disable SA1602 diff --git a/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs b/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs index 1ff09b97ab..9839fc0085 100644 --- a/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs +++ b/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs @@ -97,7 +97,7 @@ namespace Tgstation.Server.Tests.Instance Assert.IsNotNull(newerCompileJob); Assert.AreNotEqual(initialCompileJob.Id, newerCompileJob.Id); - Assert.AreEqual(DreamDaemonSecurity.Ultrasafe, daemonStatus.StagedCompileJob.MinimumSecurityLevel); + Assert.AreEqual(DreamDaemonSecurity.Ultrasafe, newerCompileJob.MinimumSecurityLevel); await TellWorldToReboot(cancellationToken);