httpss://www.youtube.com/watch?v=OYYRJZAdx2w

PHILADELPHIA – Nicki Minaj promised to keep boyfriend Meek Mill on the straight-and-narrow as a judge threatened jail over his latest parole infractions.

Minaj testified Thursday in Philadelphia, after a defense lawyer said the couple was seriously discussing marriage.

Minaj, 33, disclosed only that they were living together, but conceded she might have more influence over the rapper than his parole officer.

“She’s not going to be the one sleeping alone if he goes to jail. I am,” Minaj told the judge.

Minaj, who just received three more Grammy nominations, said she would help him stay organized and fulfill his community service requirement.

Common Pleas Judge Genece Brinkley threatened to send Mill to jail when the hearing resumes Dec. 17, as she did for a few months last year.

Defense lawyer Frank DeSimone called the music business chaotic and said Mill is not trying to disrespect the judge.

“He doesn’t have a lot of structure. He can be irresponsible,” said Minaj, who was sworn in under her birth name, Onika Maraj.

He has since issued a follow-up album, Dreams Worth More Than Money, while touring and performing with Minaj, Jay Z and others.