Prevent NullPointerException when mCompat is null

Prevent NullPointerException when mCompat is null