Skip to content

File tree

1 file changed

+1
-0
lines changed
  • src/main/ruby/truffleruby/core

1 file changed

+1
-0
lines changed

src/main/ruby/truffleruby/core/file.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ def self.braces(pattern, flags=0, patterns=[])
719719

720720
def self.fnmatch(pattern, path, flags=0)
721721
pattern = StringValue(pattern)
722+
Truffle::Type.check_null_safe(pattern)
722723
path = Truffle::Type.coerce_to_path(path)
723724
flags = Truffle::Type.coerce_to_int(flags)
724725
brace_match = false

0 commit comments

Comments
 (0)