gmac / gemoji-parser

The missing helper methods for GitHub's gemoji gem.
MIT License
72 stars 9 forks source link

undefined method `[]' for nil:NilClass #2

Open vnazarenko opened 9 years ago

vnazarenko commented 9 years ago

Hi, sometimes lib failes, i've got this from my worker undefined method []' for nil:NilClass bundle/ruby/2.2.0/gems/gemoji-2.1.0/lib/emoji.rb:55:infind_by_unicode'

bundle/ruby/2.2.0/gems/gemoji-2.1.0/lib/emoji.rb:55:in find_by_unicode' bundle/ruby/2.2.0/gems/gemoji-parser-1.3.1/lib/gemoji-parser.rb:201:inblock in parse_unicode' bundle/ruby/2.2.0/gems/gemoji-parser-1.3.1/lib/gemoji-parser.rb:200:in gsub' bundle/ruby/2.2.0/gems/gemoji-parser-1.3.1/lib/gemoji-parser.rb:200:inparse_unicode' bundle/ruby/2.2.0/gems/gemoji-parser-1.3.1/lib/gemoji-parser.rb:248:in `tokenize'

badly but i have no string, on which it fails ...