From 8ee5ee062eacb7c79457e2c07babc231e02edb31 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Fri, 23 Oct 2020 09:27:22 +0200 Subject: [PATCH] Safeguard against nothing arg to isfile in standalone_html_window (#3094) 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