diff options
-rw-r--r-- | src/rebar_state.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl index 9bf90d5..7a6e60d 100644 --- a/src/rebar_state.erl +++ b/src/rebar_state.erl @@ -117,7 +117,12 @@ new(ParentState, Config, Dir) -> ,default=NewOpts}. base_state() -> - {ok, Resources} = application:get_env(rebar, resources), + case application:get_env(rebar, resources) of + undefined -> + Resources = []; + {ok, Resources} -> + Resources + end, #state_t{resources=Resources}. get(State, Key) -> |