Couple of Questions: Why did you replaced the MAF sensor? What was the code before replacing the MAF? ist the engine light on now?
There are many components that can make the engine stall.
You should start by inspecting the transmission fluid level and condition. If the fluid is OK perform and idle adjustment.
Also, there was a recall for the camshaft position sensor that can cuase the engine to stall:
http://x.nissanhelp.com/forums/Knowledgebase.html?catid=465
33.7k questions
32.5k answers
1.3k comments
23.0k users