VOID_DataLogger: Add a null gate in CloseFileIfOpen.
[VOID.git] / VOID_DataLogger.cs
blob:a/VOID_DataLogger.cs -> blob:b/VOID_DataLogger.cs
--- a/VOID_DataLogger.cs
+++ b/VOID_DataLogger.cs
@@ -101,7 +101,7 @@
 				if (this._fileName == null || this._fileName == string.Empty)
 				{
 					this._fileName = KSP.IO.IOUtils.GetFilePathFor(
-						typeof(VOID_Core),
+						typeof(VOIDCore),
 						string.Format(
 							"{0}_{1}",
 							this.vessel.vesselName,
@@ -454,7 +454,7 @@
 
 		public VOID_DataLogger()
 		{
-			this._Name = "CSV Data Logger";
+			this.Name = "CSV Data Logger";
 
 			this.loggingActive = false;
 			this.firstWrite = true;