A strange error during Bayesian estimation

I am getting the following error in the dynare,

!!!!!!!!
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Unknown Source)
	at com.mathworks.hg.util.OutputHelperProcessingException.<init>(OutputHelperProcessingException.java:17)
	at com.mathworks.hg.util.HGVectorOutputHelper.open(HGVectorOutputHelper.java:76)
!!!!!!!!
Error using print (line 102)
There was a problem while generating the output: Java exception occurred:
java.lang.NullPointerException

	at com.mathworks.hg.print.FOPPDFVectorStrategy.endJob(FOPPDFVectorStrategy.java:127)

	at com.mathworks.hg.util.HGVectorOutputHelper.close(HGVectorOutputHelper.java:239)

Error in dyn_saveas (line 48)
        print(h,'-dpdf',[fname,'.pdf'])
Error in McMCDiagnostics (line 328)
    dyn_saveas(h,[OutputFolder '/' ModelName '_udiag'
    int2str(i)],options_.nodisplay,options_.graph_format);
Error in dynare_estimation_1 (line 465)
                oo_= McMCDiagnostics(options_, estim_params_, M_,oo_);
Error in dynare_estimation (line 105)
    dynare_estimation_1(var_list,dname);
Error in BE_corrected_rpc_euler_change_ygap_rpc (line 618)
oo_recursive_=dynare_estimation(var_list_);
Error in dynare (line 235)
evalin('base',fname) ; 

What is this?

This error comes just after first “MCMC univariate convergence diagnostic” plot pops out on the screen.

It has never happened before. All I remember is that I have updated java on my laptop few days before. Is it to do with this?

Is this error replicable, i.e. does it show up whenever you run the file or just once?

Sorry, but I cannot reproduce the issue. This seems to be a Matlab issue related to plotting.

Thnx for your response.