null pointers around line 988 in MainActivity