diff --git a/src/@dates/pop.m b/src/@dates/pop.m index b7d0c8593536de0c1bdd422aabb4b1f2f78f2a81..48f0036ae8f8225d17e90e6421d4cca584bd7b21 100644 --- a/src/@dates/pop.m +++ b/src/@dates/pop.m @@ -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 <http://www.gnu.org/licenses/>. +if o.isempty() + return +end + if nargin<2 % Remove last date o.ndat = o.ndat-1;