Will be thrown anyway if id==null. No need for special code.