[Mono-devel-list] Potential NullRef fix on XmlNode.GetNamespaceOfPrefix

Todd Berman tberman at gentoo.org
Sun Oct 12 18:30:27 EDT 2003

Small 3 line diff to add a potential nullref check and return null.

It looks (based on limited testing) that instead of returning null, the
ms.net version of this method returns String.Empty for unfound prefixes.
Might be something to look at in the future.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetNamespaceOfPrefix-fix.diff
Type: application/octet-stream
Size: 485 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031012/961ad1be/attachment.obj 

More information about the Mono-devel-list mailing list