Skip to content

Commit

Permalink
Protect against undefined information
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Aug 2, 2023
1 parent 5300c45 commit a564097
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/rebar/src/rebar3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ run_aux(State, RawArgs) ->
end,

MinimumOTPVsn = rebar_state:get(State1, minimum_otp_vsn, undefined),
App = rebar_state:current_app(State1),
App0 = rebar_state:current_app(State1),
App = case App0 of
undefined -> undefined;
_ -> rebar_app_info:name(App0)
end,
rebar_utils:check_min_otp_version(MinimumOTPVsn, App),
rebar_utils:check_blacklisted_otp_versions(rebar_state:get(State1, blacklisted_otp_vsns, undefined)),

Expand Down

0 comments on commit a564097

Please sign in to comment.