Resolvido problemas de NullPointerException