Bugs item #742587, was opened at 2003-05-23 13:35
Message generated for change (Comment added) made by skot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=742587&group_id=31650

Category: Core
Group: 0.8.2.0
Status: Open
Resolution: None
>Priority: 2
Submitted By: Curt Arnold (carnold)
Assigned to: Scott Hernandez (skot)
Summary: NullReferenceException on entity ref or process instruction

Initial Comment:
When using an external entity to contain task 
definitions, NAnt 0.8.2 will generate the following stack 
trace:


INTERNAL ERROR
System.NullReferenceException: Object reference not 
set to an instance of an obj
ect.
   at 
SourceForge.NAnt.LocationMap.GetXPathFromNode
(XmlNode node)
   at SourceForge.NAnt.LocationMap.GetLocation
(XmlNode node)
   at SourceForge.NAnt.TaskFactory.CreateTask
(XmlNode taskNode, Project proj)
   at 
SourceForge.NAnt.Project.InitializeProjectDocument
(XmlDocument doc)
   at SourceForge.NAnt.Project.Execute()
   at SourceForge.NAnt.Project.Run()


This is due to a flaw in 
Project.InitializeProjectDocument which will pass an 
EntityReference node to CreateTask which will 
eventually fail to create an XPath reference.

Attached file contains a build file that will fail on 0.8.2 
and a diff file that will fix the problem.  The expected 
result of the build file is to display "Hello, World".

----------------------------------------------------------------------

>Comment By: Scott Hernandez (skot)
Date: 2004-02-20 09:59

Message:
Logged In: YES 
user_id=4117

As a first step I have removed the error generated by 
entities. The next step is to include the entity, and evaluate 
it correctly. 

For now, Entities are simply ignored.

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2003-11-27 00:12

Message:
Logged In: YES 
user_id=707851

Scott, made any progress on this ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=742587&group_id=31650


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to