According to a friend on mine, the pronoun HIM in the following sentence is Okay. Whereas, in my understanding it should have been THEM. Please let us know which one is according to the English grammar rule.
"When you get so used to being with someone, you will have no idea what to do without HIM/THEM."