possible bug with R# inspector

Hello,

I'd like to bring the following issue to your attention:
R# suggested to check an expression for a possible NullReferenceException. That's all good. However, while wrappingthe expression in an if statement, it also wrapped an unrelated expression underneath.
This could pose a serious issue because it can introduce bugs into the program. Luckily I am a new user to R# so I double check every thing it suggests, but I can see other users just letting it do whatever and it can easily break their code.

Here is a demo:

http://screencast.com/t/EJZllWdrUi

Thanks,

Please sign in to leave a comment.