RNU.THIS
An RNU.THIS error indicates comparing 'this' with null, but this cannot be null.
Mitigation and prevention
Remove redundant check.
Example 1
12 public void doSomethingStrange() { 13 if (this == null) { 14 System.err.println("this == null!"); 15 } 16 }
RNU.THIS will be reported at line 13.
Related checkers
External guidance
Security training
Application security training materials provided by Secure Code Warrior.