diff options
author | emkael <emkael@tlen.pl> | 2016-05-23 22:21:05 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-23 22:21:05 +0200 |
commit | 126678779c396125cea847e52d06ae4b3ef03d92 (patch) | |
tree | 6ce95b7a2f4be65f13230301993a122409fa6fc7 | |
parent | de13333bdef5458200e83f326a0a9e7f26de1681 (diff) |
* PBN temp file checks before save
-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);
|