http://www.nikonchat.com/nikon-coolpix-cases/

Why keep my Nikon Coolpix P50 to a "lens error" message when you turn it on?
I have had many problems with this camera! It takes great photos, but I seem to always have failures like this. Now the lens is extended, and will not retract when off. Every time you turn, acts normal for a second, then blinks the target "error" screen. Anyone know more about these cameras? And yes, I keep in a box forever, and the lens appears clean. It is perfect, and I only bought it about six months ago.
Nikon and other companies have guarantees to take care of some technical problems. Have you contacted them? 800.NIKON-UX. Nikon and other companies that thousands of digital cameras a day, once or twice he has been aware that a "lemon" slips through quality control and that is what warranties cover. The P50 is a good camera .. seems that yours is not living up to "Nikon's reputation and standards"
Nikon Coolpix All S220 Series Digital Camera Case Kroo Mini Hard Bag Carrying Case