HTC One vs Nexus 4

I am deciding between these two devices. One of my main concerns is the lack of support for HTC devices. Specifically I am worried that the HTC One will not receive the Android 5.0 update that within the next year. Correct me if I am wrong but the HTC One has yet to be updated with 4.2 (although I hear it is in the pipeline).

Do you guys think the One will get 5.0 and if so how long after the initial release?