From f349688d133a365e3cb603f264cc1508847c3f6d Mon Sep 17 00:00:00 2001 From: Gaston Morixe Date: Sun, 5 Nov 2023 10:22:39 -0300 Subject: [PATCH] Fixes (or ignores) ffi crash (#676) Issue #634 --- lib/solargraph/complex_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '<'