Commit 3a969bc0 authored by Craig Peterson's avatar Craig Peterson

add nil check

parent 425f6114
......@@ -247,7 +247,7 @@ func (p *parser) doImport() error {
var importedTokens []Token
// first check macros. That is a simple, non-recursive replacement
if p.definedMacros[importPattern] != nil {
if p.definedMacros != nil && p.definedMacros[importPattern] != nil {
importedTokens = p.definedMacros[importPattern]
} else {
// make path relative to Caddyfile rather than current working directory (issue #867)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment