From 4a4f28b47523ff9d55714b2315b2aca45876a5e8 Mon Sep 17 00:00:00 2001 From: Shannon Date: Sat, 30 Apr 2016 12:44:46 +0200 Subject: [PATCH] BaseCompositeFileProcessingProvider.BundleDomains can be null and cause an exception #88 --- .../BaseCompositeFileProcessingProvider.cs | 1 + ClientDependency.Web.Test/Models/TestModel.cs | 31 ++++++++++++++++++- ClientDependency.Web.Test/Web.config | 2 +- SolutionInfo.cs | 2 +- 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs b/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs index 47bf881..6978aa9 100644 --- a/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs +++ b/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs @@ -38,6 +38,7 @@ protected BaseCompositeFileProcessingProvider() UrlType = UrlTypeDefault; PathBasedUrlFormat = "{dependencyId}/{version}/{type}"; CompositeFilePathAsString = DefaultDependencyPath; + BundleDomains = new List(); } #region Public Properties diff --git a/ClientDependency.Web.Test/Models/TestModel.cs b/ClientDependency.Web.Test/Models/TestModel.cs index 3f3f091..7b62f3d 100644 --- a/ClientDependency.Web.Test/Models/TestModel.cs +++ b/ClientDependency.Web.Test/Models/TestModel.cs @@ -1,6 +1,35 @@ -namespace ClientDependency.Web.Test.Models +using System; + +namespace ClientDependency.Web.Test.Models { + public class TestLogger : ClientDependency.Core.Logging.ILogger + { + public void Debug(string msg) + { + + } + + public void Info(string msg) + { + + } + + public void Warn(string msg) + { + throw new Exception(msg); + } + + public void Error(string msg, Exception ex) + { + throw new Exception(msg, ex); + } + + public void Fatal(string msg, Exception ex) + { + throw new Exception(msg, ex); + } + } public class TestModel { diff --git a/ClientDependency.Web.Test/Web.config b/ClientDependency.Web.Test/Web.config index df7817b..3873919 100644 --- a/ClientDependency.Web.Test/Web.config +++ b/ClientDependency.Web.Test/Web.config @@ -26,7 +26,7 @@ Composite files are used for both types of projects. ** IMPORTANT: If you're web.config setting: compilation debug="true" is set to 'true', then composite files will NOT be enabled no matter what --> - +