#187 Gio::ContentType.guess. no implicit conversion from nil to integer (TypeError)

v1.0_(example)
closed-fixed
nobody
None
5
2014-03-07
2014-03-07
neversleep1911
No

Another one bug with gio.

#/usr/bin/env ruby

require 'gio2'

Gio::ContentType.guess('filename.mp3')

$ ruby test.rb
/usr/lib/ruby/site_ruby/2.1.0/gio2/loader.rb:145:in `invoke': no implicit conversion from nil to integer (TypeError)

from /usr/lib/ruby/site_ruby/2.1.0/gio2/loader.rb:145:in `block in load_function_info_content_type'

from test.rb:5:in `<main>'

Discussion

  • Kouhei Sutou
    Kouhei Sutou
    2014-03-07

    • status: open --> closed-fixed
     
  • Kouhei Sutou
    Kouhei Sutou
    2014-03-07

    Thanks for your report!
    I've fixed it!