After Khadar arrived in Germany from Somalia in December 2014, he waited nearly two years for his asylum interview - the appointment that would decide if he could stay in the country.
Khadar, who is gay, left his hometown of Qoryoley in southern Somalia aged just 17 because his life was in danger, he said. Homosexuality is outlawed in Somalia, one of a handful of countries where consenting gay sex is punishable by death.
"In Germany, I felt very anxious about what would happen to me," he told the Thomson Reuters Foundation in Frankfurt. "I didn't know if I would be deported back to Somalia."
When Khadar finally sat down to his interview in October 2016, his interpreter warned him, in Somali: "Don't say anything bad about Islam."