Author: husted Date: Mon Sep 12 11:41:15 2005 New Revision: 280390 URL: http://svn.apache.org/viewcvs?rev=280390&view=rev Log: OVR-13 * Refine null handling.
Modified: struts/sandbox/trunk/overdrive/Nexus/Core/Validators/ProcessorCommand.cs struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Agility.Core.dll struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Agility.Core.pdb struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.dll struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.pdb struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.xml struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Extras.dll struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Extras.pdb struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Test.dll struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Test.pdb Modified: struts/sandbox/trunk/overdrive/Nexus/Core/Validators/ProcessorCommand.cs URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Core/Validators/ProcessorCommand.cs?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== --- struts/sandbox/trunk/overdrive/Nexus/Core/Validators/ProcessorCommand.cs (original) +++ struts/sandbox/trunk/overdrive/Nexus/Core/Validators/ProcessorCommand.cs Mon Sep 12 11:41:15 2005 @@ -74,15 +74,18 @@ /// Format output for fields that do not have a Processor. /// </summary> /// <remarks> - /// The default behavior is to pass through ICollection types - /// and call ToString on everything else. + /// The default behavior is to pass through nulls and ICollection types + /// and to call ToString on everything else. /// </remarks> /// <param name="context">The IProcessorContext</param> public virtual bool FormatOutput(IProcessorContext context) { - Type sourceType = context.Source.GetType(); - if (IsCollectionType(sourceType)) context.Target = context.Source; - else context.Target = context.Source.ToString(); + if (context.Source != null) + { + Type sourceType = context.Source.GetType(); + if (IsCollectionType(sourceType)) context.Target = context.Source; + else context.Target = context.Source.ToString(); + } return true; } Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Agility.Core.dll URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Agility.Core.dll?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Agility.Core.pdb URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Agility.Core.pdb?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.dll URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.dll?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.pdb URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.pdb?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.xml URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.xml?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== --- struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.xml (original) +++ struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Core.xml Mon Sep 12 11:41:15 2005 @@ -925,8 +925,8 @@ Format output for fields that do not have a Processor. </summary> <remarks> - The default behavior is to pass through ICollection types - and call ToString on everything else. + The default behavior is to pass through nulls and ICollection types + and to call ToString on everything else. </remarks> <param name="context">The IProcessorContext</param> </member> @@ -1088,7 +1088,7 @@ </summary> <param name="command">Command ID</param> <returns>IRequestCommand instance for name</returns> - <exception cref="T:System.Exception"> + <exception cref="!:Exception"> Throws Exception if name is null, name is not in catalog, or if instance for name is not a IRequestCommand Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Extras.dll URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Extras.dll?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Extras.pdb URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Extras.pdb?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Test.dll URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Test.dll?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. Modified: struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Test.pdb URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/bin/Debug/Nexus.Test.pdb?rev=280390&r1=280389&r2=280390&view=diff ============================================================================== Binary files - no diff available. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]