We get a violation G-5060 : Avoid unhandled exceptions with this code (just showing part of the code) :  when we comment the IF statement the violation is no longer there : 