Finely chop the onions and garlic and sauté in a little oil. Add the rice (if you have rice pudding, add a little more oil), pour on the vegetable stock, bring to the boil and let the rice simmer for about 20 minutes on a low level.
Quarter the tomatoes, puree the sun-dried tomatoes with the mixer, roughly chop the basil and pine nuts.
When the rice is cooked, mix in all the ingredients except for the basil and season the risotto to taste. Finally fold in the basil and serve immediately hot.