From ae9aa7414935c75d516ec8f7862eda9aec0db1aa Mon Sep 17 00:00:00 2001 From: Cezar Cretu Date: Tue, 18 Mar 2014 03:53:25 +0200 Subject: [PATCH] fixed object reference not set when shim entry would not have exports defined --- RequireJsNet/Configuration/XmlReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RequireJsNet/Configuration/XmlReader.cs b/RequireJsNet/Configuration/XmlReader.cs index 26230ff..3a268ed 100644 --- a/RequireJsNet/Configuration/XmlReader.cs +++ b/RequireJsNet/Configuration/XmlReader.cs @@ -61,7 +61,7 @@ private RequireShim GetShim(XElement root) shim.ShimEntries = shimEl.Descendants("dependencies") .Select(r => new ShimEntry { - Exports = r.Attribute("exports").Value, + Exports = r.Attribute("exports") != null ? r.Attribute("exports").Value : "", For = r.Attribute("for").Value, Dependencies = r.Descendants("add") .Select(x => new RequireDependency