It could be the lens... it could be the sensor... so let's try to see which is it... but whichever... take it down to NSC to get things cleaned up. If it is the sensor, and the camera is still under warranty, it would be free. But if warranty has expired... then it'll be $25+GST.
Troubleshooting:
Go to aperture mode and shoot a blank wall with different apertures. If the "line" you see is the same in all your shots, it could be dust on the sensor. If the "line" you see disappears or becomes not so clear at different apertures, it could be dust in the lens.
Try it out and see what the results are... but just based on the 2 pics I see, one picture has a clear "line" while the other was faint... it looks like a lens problem. Check the EXIF info of these 2 pictures if they were taken at the same aperture.