[ 
http://issues.apache.org/jira/browse/IBATISNET-26?page=comments#action_59823 ]
     
Philip Kerrigan commented on IBATISNET-26:
------------------------------------------

Further investigation shows that the method is called when processing the 
sqlMap entry of the sqlmap.config file, not the properties entry.
Since the sqlMap node uses "file=" as a keyword and the method is looking for 
resource, url, or embedded, a null is returned and no check is made.

I tried changing file to url in the sqlmap.config file, and got as far as the 
call to GetFileInfo(path) where path was the correct url from the configuraion 
file ("file:///d:/Person.xml") but got an exception "the given path's format is 
not supported" on returning the FileInfo at line 333 of Resources.cs because 
the path value was prefixed by the _rootDirectory value.

> Unhandled NullReference parsing non-existent properties.
> --------------------------------------------------------
>
>          Key: IBATISNET-26
>          URL: http://issues.apache.org/jira/browse/IBATISNET-26
>      Project: iBatis for .NET
>         Type: Bug
>     Versions: DataMaper 1.5
>  Environment: Windows XP 
>     Reporter: Philip Kerrigan

>
> DomSqlMapBuilder.ConfigureSqlMap calls Resources.GetAsXmlDocument at line 456 
> even though I have no properties defined. GetAsXmlDocument looks for values 
> of resource, url, or embedded, and not finding any of them it returns 
> xmlDocument null.
> ConfigureSqlMap does not check for a null value and attempts to call 
> config.SelectSingleNode with a null value for config, causing an unhandled 
> NullReferenceException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to