Hi please check the logs that you are getting correct value from intent or not? may be data is not passed correctly. so please investigate , beside this you can check the passed data value and received values with logs and check the key name of the passed data as well. In Short Please check passed values through the intent.
raise the answer if it is feasible