Most likely one of your ingredients was too cold, either the pudding base or the butter. Not to worry, all you have to do is heat it up a little bit - I usually use a hairdryer outside of the bowl. Do it one bit at a time, so you don't melt the butter and keep whipping it until it comes together.