Initialize empty code object if codelines is not given