RNU.THIS

An RNU.THIS error indicates comparing 'this' with null, but this cannot be null.

Mitigation and prevention

Remove redundant check.

Example 1

Copy
     public void doSomethingStrange() {
         if (this == null) {
             System.err.println("this == null!");
         }
     }

RNU.THIS will be reported at line 13.

Security training

Application security training materials provided by Secure Code Warrior.