Bugs item #742587, was opened at 2003-05-23 22:35
Message generated for change (Comment added) made by drieseng
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: Gert Driesen (drieseng)
Date: 2004-07-12 23:22

Message:
Logged In: YES 
user_id=707851

Scott,

Can you have another look at this ?

Thanks !!

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

Comment By: Curt Arnold (carnold)
Date: 2004-02-21 04:27

Message:
Logged In: YES 
user_id=27193

The attachment had a fix and tests that fixed the whole problem.  I don't 
know how much the underlying code changed, but I would think it would 
be simplier just to review the patch than to work through the problem 
piecemeal.

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

Comment By: Scott Hernandez (skot)
Date: 2004-02-20 19:52

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: Scott Hernandez (skot)
Date: 2004-02-20 18: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 09: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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to