Skip to content

Commit 81aa3f9

Browse files
committed
1 parent bf38c91 commit 81aa3f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug/xml_printer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def print_variable(name, value, kind)
163163
value_str = $1
164164
end
165165
end
166-
value_str = "[Binary Data]" if value_str.is_binary_data?
166+
value_str = "[Binary Data]" if (value_str.respond_to?('is_binary_data?') && value_str.is_binary_data?)
167167
print("<variable name=\"%s\" kind=\"%s\" value=\"%s\" type=\"%s\" hasChildren=\"%s\" objectId=\"%#+x\"/>",
168168
CGI.escapeHTML(name), kind, CGI.escapeHTML(value_str), value.class,
169169
has_children, value.respond_to?(:object_id) ? value.object_id : value.id)

0 commit comments

Comments
 (0)