Bugs item #1276852, was opened at 2005-08-30 10:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1276852&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: unknown Status: Open Resolution: None Priority: 5 Submitted By: Ted Clark Jr (tedclarkjr) Assigned to: Nobody/Anonymous (nobody) Summary: AssemblyFolders not correctly handling all SPACE entry Initial Comment: I have seen other posts regarding a bug like this, and it has been closed, yet I can still recreate it in .84. NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 12/26/2003) If a registry subkey (subfolder) under AssemblyFolders has a bogus value, it can throw the exception shown below. My suggestion for a fix would be this: 1. For each entry - first check to see if it is even somewhat valid. For my particular entry, it contained one or more spaces. Erasing them would give you the regedit display of "(value not set)". In the case of the strings, it seems it is trying to open it as a folder, and it fails. 2. If it seems like it could be valid (or at least not an empty string after trimming), check with filesystem to see whether it exists. If it exists, then it could be opened. If it doesn't, perhaps a warning to the console or log, and then ignore the entry altogether. The work around for me was to put a valid folder here. Thank you for your time. The stack trace is below: System.NullReferenceException: Object reference not set to an instance of an object. at NAnt.VSNet.Tasks.SolutionTask.ScanRegistryForAsse mblyFolders(RegistryKey mainKey, FileSet fsFolders) at NAnt.VSNet.Tasks.SolutionTask.FindDefaultAssemblyF olders() at NAnt.VSNet.Tasks.SolutionTask.get_DefaultAssemlyFol ders() at NAnt.VSNet.Solution.GetDependenciesFromProjects() at NAnt.VSNet.Solution..ctor(String solutionFileName, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTa sk solutionTask, WebMapCollection webMappings, FileSet excludesProjects, String outputDir) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1276852&group_id=31650 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers