Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

Commit

Permalink
Fixed null pointer exception. Changed [1] to ['block'] because the re…
Browse files Browse the repository at this point in the history
…sult of mdToDocument call was a hash and not an array.
  • Loading branch information
spenceatt committed Mar 8, 2017
1 parent 6dfeeec commit 331a593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/examples/includes/Include.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ toJSONFilter(CodeBlock) { CodeBlock cb, meta ->
def result = [cb]

while (result.any {isIncludeBlock(it)}) {
result = result.collectMany { isIncludeBlock(it) ? converter.mdToDocument(includeFiles(it.code))[1] : [it] }
result = result.collectMany { isIncludeBlock(it) ? converter.mdToDocument(includeFiles(it.code))['blocks'] : [it] }
}

result
Expand Down

0 comments on commit 331a593

Please sign in to comment.