bug in PopulateXsltArgumentList()
[email protected] Thu, 01 Jul 2004 12:56:48 +0200
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <40E40A10.9488.D4688C@localhost> |
I had a problem with a controller that did not set a property. This resulted in an error
(null pointer) in PopulateXsltArgumentList().
So I suggest to patch XsltTransform PopulateXsltArgumentList().
I think it is safer to check if item.Value == null before doing a item.Value.GetType()
protected XsltArgumentList PopulateXsltArgumentList()
{
.....
....
foreach (DictionaryEntry item in this.tctx.Params)
{
if(null == item.Value) continue;
if
((typeof(string).Equals(item.Value.GetType())) etc....
-------------------------------------------------------
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
[INVALID FOOTER]