diff options
-rw-r--r-- | PBNFile.cs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -58,6 +58,10 @@ namespace BCDD public void Save()
{
+ if (this.outputFile == null)
+ {
+ throw new IOException("No boards written to PBN file, unable to save it.");
+ }
this.outputFile.Flush();
this.outputFile.Close();
File.Delete(this.filename);
|