diff --git a/Plugin/SSTUTools/KSPShaderTools/Addon/TexturesUnlimitedDebug.cs b/Plugin/SSTUTools/KSPShaderTools/Addon/TexturesUnlimitedDebug.cs index 07db512..c3ca176 100644 --- a/Plugin/SSTUTools/KSPShaderTools/Addon/TexturesUnlimitedDebug.cs +++ b/Plugin/SSTUTools/KSPShaderTools/Addon/TexturesUnlimitedDebug.cs @@ -36,7 +36,10 @@ public void Awake() } else//button not null, but not debug mode; needs to be removed { - ApplicationLauncher.Instance.RemoveModApplication(debugAppButton); + if (debugAppButton != null) + { + ApplicationLauncher.Instance.RemoveModApplication(debugAppButton); + } } }