To demonstrate the abilities of PVS-Studio analyzer, we decided to find several bugs.
I would like to suggest a variant of the way to fix the error, detected with the help of V3125 diagnostic: The 'this.Bearing' object was used after it was verified against null. Check lines: 51, 49.
PVS-Studio is a tool for bug detection in the source code of programs, written in C, C++ and C#. It works in Windows and Linux environment. https://www.viva64.com/en/pvs-studio/
We suggests having a look at the emails, sent from @pvs-studio.com.
To demonstrate the abilities of PVS-Studio analyzer, we decided to find several bugs. I would like to suggest a variant of the way to fix the error, detected with the help of V3125 diagnostic: The 'this.Bearing' object was used after it was verified against null. Check lines: 51, 49.
PVS-Studio is a tool for bug detection in the source code of programs, written in C, C++ and C#. It works in Windows and Linux environment. https://www.viva64.com/en/pvs-studio/
We suggests having a look at the emails, sent from @pvs-studio.com.