Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix S1121: NullReferenceException when while loop with assignment expression is within a for loop with no condition #725

Closed
Evangelink opened this issue Aug 25, 2017 · 0 comments
Assignees
Labels
Type: Bug Exceptions and blocking issues during analysis.
Milestone

Comments

@Evangelink
Copy link
Contributor

The SonarAnalyzer.Rules.CSharp.AssignmentInsideSubExpression throws a System.NullReferenceException on peach when analyzing automatic-graph-layout.

CSC : warning AD0001: Analyzer 'SonarAnalyzer.Rules.CSharp.AssignmentInsideSubExpression' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. [d:\slave02\workspace\Dotnet\automatic-graph-layout\GraphLayout\tools\Dot2Graph\Dot2Graph.csproj]
CSC : warning AD0001: Analyzer 'SonarAnalyzer.Rules.CSharp.AssignmentInsideSubExpression' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. [d:\slave02\workspace\Dotnet\automatic-graph-layout\GraphLayout\tools\Dot2Graph\Dot2Graph.csproj]
@Evangelink Evangelink added Area: Rules Type: Bug Exceptions and blocking issues during analysis. labels Aug 25, 2017
@Evangelink Evangelink modified the milestone: 6.5 Aug 25, 2017
@michalb-sonar michalb-sonar modified the milestones: 6.4, 6.5 Aug 28, 2017
@valhristov valhristov self-assigned this Aug 28, 2017
@michalb-sonar michalb-sonar changed the title Fix AssignmentInsideSubExpression to not throw NullReferenceException on automatic-graph-layout Fix S1121: do not throw NullReferenceException on automatic-graph-layout Aug 28, 2017
@valhristov valhristov changed the title Fix S1121: do not throw NullReferenceException on automatic-graph-layout Fix S1121: NullReferenceException when while loop with assignment expression is within a for loop with no condition Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Exceptions and blocking issues during analysis.
Projects
None yet
Development

No branches or pull requests

3 participants