Skip to content

Commit 235430d

Browse files
Fix startup when history file is bad
1 parent b22b629 commit 235430d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ find_hist_file() = get(ENV, "JULIA_HISTORY",
11831183
!isempty(DEPOT_PATH) ? joinpath(DEPOT_PATH[1], "logs", "repl_history.jl") :
11841184
error("DEPOT_PATH is empty and ENV[\"JULIA_HISTORY\"] not set."))
11851185

1186-
backend(r::AbstractREPL) = hasproperty(r, :backendref) ? r.backendref : nothing
1186+
backend(r::AbstractREPL) = hasproperty(r, :backendref) && isdefined(r, :backendref) ? r.backendref : nothing
11871187

11881188

11891189
function eval_on_backend(ast, backend::REPLBackendRef)

0 commit comments

Comments
 (0)