From d1b5ab4dd8d6cef08f540cf8643c82b847d2dcdf Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Sat, 13 Jun 2015 14:25:30 +0200 Subject: [PATCH] Bundler: Fix bundling of empty files --- Scrummer/Code/Bundler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scrummer/Code/Bundler.cs b/Scrummer/Code/Bundler.cs index 86662fa..b1d9fe8 100644 --- a/Scrummer/Code/Bundler.cs +++ b/Scrummer/Code/Bundler.cs @@ -48,7 +48,10 @@ namespace Scrummer.Code { string fileContent = File.ReadAllText(fileName); byte[] byteArray = Encoding.UTF8.GetBytes(fileContent); - outStream.Write(byteArray, 0, byteArray.Length); + if (byteArray.Length > 0) + { + outStream.Write(byteArray, 0, byteArray.Length); + } } }