Fix the bug for NPE in ViewPostACtivity