Which version do you used ?
I don't see problem with SVN code

 
On 10/18/05, Brian Kierstead <[EMAIL PROTECTED]> wrote:
Hello,

I think I've noticed an error in
IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.ParseGlobalProperties :

<snip>
   XmlNode nodeProperties =
configurationScope.NodeContext.SelectSingleNode("properties");

           configurationScope.ErrorContext.Resource =
nodeProperties.InnerXml.ToString ();
           configurationScope.ErrorContext.MoreInfo = "add global
properties";

           if (nodeProperties != null)
           {
</snip>

In the above code, if no 'properties' node is found, nodeProperties will
be null and trying to access its InnerXml property will throw a
System.NullReferenceException execption.  Should the test for null be
before this line?  As far as I can tell from xsd, the properties node is
not required.

I'm not sure if this is the right place for this post, but I figure
there must be people on this list who know what to do with it if I'm right.

Brian


Reply via email to