Merge "Synchronize mPermissions to void NullPointerException."