WARNING: This page is about a different car, the 2013 Nissan Armada. However, it is still accessible from the selected car via links, so may be relevant.
Check continuity between terminals of the stop lamp switch harness connector.
Condition
Terminal No.
Continuity
When brake pedal is depressed
1 - 2
Yes
When brake pedal is released
No
Fig 1: Checking Continuity Between Terminals Of Stop Lamp Switch Harness Connector
Courtesy of NISSAN NORTH AMERICA, INC.
Check stop lamp switch after adjusting brake pedal.