A few days ago, my friend received a ticket that was not meant for him. He automatically opened it and started reading through it. After a few lines he understood that this ticket was not meant for him, but for his team lead.
He told me that in the ticket the manager asked if the team lead could create some things to do for my friend, because the manager added "it seems that he has nothing to do". And lately he had noticed that they cannot provide my friend with enough work.
I know for a fact that he is doing a good job, the code he writes has little to no bugs and he always finishes what he starts. He does what he is asked and sometimes even more, trying to impress his manager.
Now he asked me if this means that his job could be on the line due to the little work needing to be done. I could not think of an answer so I am asking here.
Can things like this endanger his work position? What exactly should my friend do to avoid been in this situation. Are there any activities which could lead maybe to be under higher workload and do not worry about his position at work?