Brett Porter resolved NPANDAY-477.

       Resolution: Fixed
    Fix Version/s: 1.5.0-incubating
         Assignee: Brett Porter

I didn't realise this issue was here, but fixed these 3 problems in r1226485
> If a solution has content files outside "regular" projects, several 
> first-chance exceptions occur in Connect.cs
> ---------------------------------------------------------------------------------------------------------------
>                 Key: NPANDAY-477
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-477
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.4-incubating
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
> Java version: 1.6.0_23
> Java home: C:\Program Files (x86)\Java\jdk1.6.0_23\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
> Visual Studio 2010 SP1/.NET Framework 4
>            Reporter: Stoyan Damov
>            Assignee: Brett Porter
>            Priority: Minor
>             Fix For: 1.5.0-incubating
> A solution containing one or more files outside any projects (e.g. a new 
> mavenized solution, where I unhide the files and include the parent pom) will 
> crash the addin with several first-chance exceptions (but these are swallowed 
> by COM). The solution has a (I believe hidden) project called "Solution 
> Items", which is not handled properly.
> # {{ProjectItemEvents_ItemAdded}} creates {{new 
> PomHelperUtility(_applicationObject.Solution, CurrentSelectedProject)}}, 
> where {{CurrentSelectedProject}} is {{null}} which crashes with 
> {{NullReferenceException}} in {{PomHelperUtility}}'s ctor.
> # {{SigningEvents_SignatureAdded}} crashes in {{doc.Load(project.FullName)}} 
> with {{ArgumentException}}, because {{FullName}} is an empty string.
> # {{attachReferenceEvent}} crashes with {{InvalidCastException}} at 
> {{VSProject2 classProject = (VSProject2)project.Object}}
> I suggest developers debug the addin every now and then with first-chance 
> exceptions enabled to catch such errors.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to