postmodern / ffi-hunspell

Ruby FFI bindings for Hunspell.
MIT License
48 stars 24 forks source link

FFI::NullPointerError invalid memory read at address=(nil) #2

Closed ownercoder closed 3 years ago

ownercoder commented 13 years ago

if !ptr.null? stems = ptr.get_array_of_string(0,count) end

postmodern commented 3 years ago

This should be fixed in c7cfb16c25e9c78ecaf2b006aca871e0a0847d2f where we check the returned count > 0, which indicates the pointer should be populated.