Skip to content

Commit

Permalink
Fixed NullReferenceException
Browse files Browse the repository at this point in the history
git-svn-id: https://fisheye.marc-hi.ca/svn/everest/branches/1.0@197 0a814079-c22b-1640-8a39-4bdcdc761e1f
  • Loading branch information
Justin Fyfe committed May 30, 2013
1 parent 869f4de commit 0a8333e
Show file tree
Hide file tree
Showing 2 changed files with 7,350 additions and 7,350 deletions.
2 changes: 1 addition & 1 deletion MARC.Everest.Formatters.XML.ITS1/XmlIts1Formatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ public ResultCode WriteElementUtil(XmlWriter s, string elementName, IGraphable g
// assigned.
if (typeof(ANY).IsAssignableFrom(g.GetType()))
s.WriteAttributeString("xsi", "type", XmlIts1Formatter.NS_XSI, Util.CreateXSITypeName(g.GetType()));
else if(g.GetType().Assembly.FullName != propType.Assembly.FullName)
else if(propType != null && g.GetType().Assembly.FullName != propType.Assembly.FullName)
{
string typeName = this.CreateXSITypeName(g.GetType(), context != null ? context.GetType() : null);
s.WriteAttributeString("xsi", "type", XmlIts1Formatter.NS_XSI, typeName);
Expand Down
Loading

0 comments on commit 0a8333e

Please sign in to comment.