https://bugzilla.novell.com/show_bug.cgi?id=875176

https://bugzilla.novell.com/show_bug.cgi?id=875176#c0


           Summary: Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRul
                    e throwing an error
    Classification: Mono
           Product: Mono: Tools
           Version: 2.10.x
          Platform: PC
        OS/Version: Windows Server 2008 R2
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs@lists.ximian.com
        ReportedBy: tv.sa...@gmail.com
         QAContact: mono-bugs@lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
InfoPath.3; .NET4.0C; .NET4.0E)

I have a silverlight v5.0 project, When I execute the gendarme i'm getting the
below error...

11:49:09.995 INFO  - Gendarme executable not found: 'C:\Program
Files\gendarme-2.10-bin\gendarme.exe'. The embedded version (2.10) will be used
instead.
11:49:10.433 INFO  - Executing command:
D:\BUILDS\17\ESTD_ALM\ISAP-Liquidity-NigthlyCodeAnalysis\Sources\.sonar\gendarme-2.10-bin\gendarme.exe
--config
D:\BUILDS\17\ESTD_ALM\ISAP-Liquidity-NigthlyCodeAnalysis\Sources\Liquidity.Common\.sonar\sonar.Gendarme
--xml
D:\BUILDS\17\ESTD_ALM\ISAP-Liquidity-NigthlyCodeAnalysis\Sources\Liquidity.Common\.sonar\gendarme-report.xml
--quiet --confidence normal+ --severity all
D:\BUILDS\17\ESTD_ALM\ISAP-Liquidity-NigthlyCodeAnalysis\Sources\Liquidity.Common\Bin\Debug\Liquidity.Common.dll
11:49:13.901 INFO  - 
11:49:13.901 INFO  - An uncaught exception occured. Please fill a bug report at
https://bugzilla.novell.com/
11:49:13.901 INFO  - Rule:   
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule
11:49:13.901 INFO  - Target:   
System.Collections.ObjectModel.ObservableCollection`1<Liquidity.Common.Models.DataRow>
Liquidity.Common.Utils.EntityHelper::PivotEntiteCollection(System.Collections.Generic.IEnumerable`1<Liquidity.DAL.Data.Entite>,System.Collections.Generic.IEnumerable`1<Liquidity.DAL.Data.EntityPerimeterAttribution>,System.Collections.Generic.IEnumerable`1<Liquidity.DAL.Data.EntityPerimeter>)
11:49:14.120 INFO  - Stack trace: System.NullReferenceException: Object
reference not set to an instance of an object.
11:49:14.120 INFO  -    at
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule.GetToken(MethodReference
method)
11:49:14.120 INFO  -    at
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule.BuildMethodUsage(HashSet`1
methods, MethodDefinition method)
11:49:14.120 INFO  -    at
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule.GetCache(TypeDefinition
type)
11:49:14.120 INFO  -    at
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule.CheckTypeForMethodUsage(TypeDefinition
type, MethodReference method)
11:49:14.120 INFO  -    at
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule.CheckAssemblyForMethodUsage(MethodReference
method)
11:49:14.120 INFO  -    at
Gendarme.Rules.Performance.AvoidUncalledPrivateCodeRule.CheckMethod(MethodDefinition
method)
11:49:14.120 INFO  -    at Gendarme.Framework.Runner.OnMethod(RunnerEventArgs
e)
11:49:14.120 INFO  -    at Gendarme.Framework.Runner.Run()
11:49:14.120 INFO  -    at Gendarme.ConsoleRunner.Run()
11:49:14.120 INFO  -    at Gendarme.ConsoleRunner.Execute(String[] args)
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to