In ooDialog the ResDialog is a subclass of the BaseDialog. As such, in its init method, it calls the superclass init. However, it does not check the return.
It is very possible for the superclass init to fail. By not checking the return, the ResDialog does not pass the failure along to the user of the class. This in turn will cause a user program to continue running, thinking all is okay, when it is not.