Fix null pointer on sqlapprovaldao when fragment is null