diff --git a/cmd/effe/main.go b/cmd/effe/main.go index 1b38708..a73ed4a 100644 --- a/cmd/effe/main.go +++ b/cmd/effe/main.go @@ -14,7 +14,7 @@ import ( ) const ( - version = "0.1.0" + version = "0.1.2" ) func main() { diff --git a/strategies/blockcontext.go b/strategies/blockcontext.go index 2dbc3e7..a49341b 100644 --- a/strategies/blockcontext.go +++ b/strategies/blockcontext.go @@ -31,6 +31,9 @@ func (b *BlockContext) CalculateInput(calls []ComponentCall) { for _, inputField := range c.Input().List { var foundSourceOfArg bool for _, previous := range calls[:index] { + if previous.Output() == nil { + break + } foundSourceOfArg = fields.FindFieldWithType(previous.Output().List, inputField.Type) != nil if foundSourceOfArg { break