Skip to content

Commit

Permalink
fixed object reference not set when shim entry would not have exports…
Browse files Browse the repository at this point in the history
… defined
  • Loading branch information
CezarCretu committed Mar 18, 2014
1 parent d5ff665 commit ae9aa74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RequireJsNet/Configuration/XmlReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae9aa74

Please sign in to comment.