I have almost 8 years commercial experience, and I've been working for my current company for 2-3 years now. My problem is I don't feel like I'm doing any work at all.
For a whole year I was working with a team from a different office on a project, last month due to financial issues, the other office was shut and project was put on hold. Since then, most of the stuff I did was just small patches, no more than 10 lines of code.
When I picked a couple tasks from the list from the project which I was working on before, my team leader told me there are more important things to do. Since then, I'm spending more time asking him what I can do than actually doing any job. Given that everyone else in the office is busy with something, and I don't have anything to do for hours makes me feel bad and useless.
How I should handle this situation?