From 61e2f26325da2010d2bd114076eb251960500059 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Fri, 23 Oct 2020 08:25:35 +0200 Subject: [PATCH] Safeguard against nothing arg to isfile in standalone_html_window Fixes #3093 --- src/backends/web.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/web.jl b/src/backends/web.jl index d73fa067..4f827529 100644 --- a/src/backends/web.jl +++ b/src/backends/web.jl @@ -45,7 +45,7 @@ function standalone_html_window(plt::AbstractPlot) old = use_local_dependencies[] # save state to restore afterwards # if we open a browser ourself, we can host local files, so # when we have a local plotly downloaded this is the way to go! - use_local_dependencies[] = isfile(plotly_local_file_path[]) + use_local_dependencies[] = plotly_local_file_path[] === nothing ? false : isfile(plotly_local_file_path[]) filename = write_temp_html(plt) open_browser_window(filename) # restore for other backends