Revert "[3.0]Change the location of checking NULL of mContext"