Skip to content

Commit a6fd799

Browse files
committed
Fix crash when no behaviours
1 parent 959e665 commit a6fd799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir_sense/core/compiler.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ defmodule ElixirSense.Core.Compiler do
18021802
# elixir forces runtime dependency on behaviour via Module.force_behaviour_dependencies
18031803
# which emits a trace for a fake behaviour_info call
18041804
state =
1805-
Enum.reduce(state.behaviours[full], state, fn behaviour, state ->
1805+
Enum.reduce(Map.get(state.behaviours, full, []), state, fn behaviour, state ->
18061806
state
18071807
|> State.add_call_to_line(
18081808
{behaviour, :behaviour_info, 1},

0 commit comments

Comments
 (0)