Skip to content
Snippets Groups Projects
Commit 3b7413de authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed crash when x13 object is instantiated without exogenous variables.

parent 9bf8a383
Branches
No related tags found
No related merge requests found
......@@ -105,8 +105,8 @@ if ismember('regression', o.commands)
end
end
end
if isempty(o.regression.start)
fprintf(fid, ' start = %i.%i\n', o.x.init.year, o.x.init.subperiod);
if ~isempty(o.x) && isempty(o.regression.start)
fprintf(fid, ' start = %i.%i\n', year(o.x.init), subperiod(o.x.init));
end
end
fprintf(fid, '}\n\n');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment