diff --git a/File_Format_Library/FileFormats/BFRES/BFRES.cs b/File_Format_Library/FileFormats/BFRES/BFRES.cs index 82d69f73..1accc4b9 100644 --- a/File_Format_Library/FileFormats/BFRES/BFRES.cs +++ b/File_Format_Library/FileFormats/BFRES/BFRES.cs @@ -951,7 +951,7 @@ namespace FirstPlugin public void Save(Stream stream) { //Force mesh codec compression on save - if (this.FilePath.EndsWith(".mc")) + if (this.FilePath != null && this.FilePath.EndsWith(".mc")) { this.IFileInfo.FileCompression = new MeshCodecFormat(); this.IFileInfo.FileIsCompressed = true;