Skip to content

Commit

Permalink
working around failing test starting with ffi 1.0.4-ish.
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 19, 2011
1 parent 22c39a5 commit 90c8ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nokogiri/ffi/structs/xml_node_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def nodeAt(index)
end

def nodeTab
self[:nodeTab].read_array_of_pointer(self[:nodeNr])
self[:nodeTab].null? ? [] : self[:nodeTab].read_array_of_pointer(self[:nodeNr])
end

def nodeTab=(array)
Expand Down

0 comments on commit 90c8ce2

Please sign in to comment.