Fixed bug in pop method.

Avoid crash if o is empty.
parent 62eaa825
......@@ -28,6 +28,10 @@ function o = pop(o, p) % --*-- Unitary tests --*--
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <>.
if o.isempty()
if nargin<2
% Remove last date
o.ndat = o.ndat-1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment