diff --git a/lib/solargraph/complex_type.rb b/lib/solargraph/complex_type.rb index 32574ec81..89dfaa6cb 100644 --- a/lib/solargraph/complex_type.rb +++ b/lib/solargraph/complex_type.rb @@ -169,7 +169,7 @@ def parse *strings, partial: false paren_stack = 0 base = String.new subtype_string = String.new - type_string.each_char do |char| + type_string&.each_char do |char| if char == '=' #raise ComplexTypeError, "Invalid = in type #{type_string}" unless curly_stack > 0 elsif char == '<'