{"action":"created","issue":{"url":"https://api.github.com/repos/daddyz/phonelib/issues/55","labels_url":"https://api.github.com/repos/daddyz/phonelib/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/daddyz/phonelib/issues/55/comments","events_url":"https://api.github.com/repos/daddyz/phonelib/issues/55/events","html_url":"https://github.com/daddyz/phonelib/issues/55","id":99806013,"number":55,"title":"Crash with some phone numbers","user":{"login":"kidlab","id":624862,"avatar_url":"https://avatars.githubusercontent.com/u/624862?v=3","gravatar_id":"","url":"https://api.github.com/users/kidlab","html_url":"https://github.com/kidlab","followers_url":"https://api.github.com/users/kidlab/followers","following_url":"https://api.github.com/users/kidlab/following{/other_user}","gists_url":"https://api.github.com/users/kidlab/gists{/gist_id}","starred_url":"https://api.github.com/users/kidlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidlab/subscriptions","organizations_url":"https://api.github.com/users/kidlab/orgs","repos_url":"https://api.github.com/users/kidlab/repos","events_url":"https://api.github.com/users/kidlab/events{/privacy}","received_events_url":"https://api.github.com/users/kidlab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-08T14:36:39Z","updated_at":"2015-08-09T05:21:39Z","closed_at":null,"body":"I got some trouble when initializing some phone numbers like this `119660086441`:\r\n```ruby\r\nphone = Phonelib::Phone.new(\"119660086441\")\r\n```\r\n\r\n```\r\nNoMethodError: undefined method `match' for nil:NilClass\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:211:in `block in get_number_format'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:209:in `each'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:209:in `find'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:209:in `get_number_format'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:149:in `get_national_and_data'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:69:in `parse_single_country'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:81:in `block in detect_and_parse'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:80:in `each'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:80:in `detect_and_parse'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone_analyzer.rb:26:in `analyze'\r\n~/.rvm/gems/ruby-2.0.0-p643/gems/phonelib-0.4.7/lib/phonelib/phone.rb:24:in `initialize'\r\n```"},"comment":{"url":"https://api.github.com/repos/daddyz/phonelib/issues/comments/129119232","html_url":"https://github.com/daddyz/phonelib/issues/55#issuecomment-129119232","issue_url":"https://api.github.com/repos/daddyz/phonelib/issues/55","id":129119232,"user":{"login":"daddyz","id":1370959,"avatar_url":"https://avatars.githubusercontent.com/u/1370959?v=3","gravatar_id":"","url":"https://api.github.com/users/daddyz","html_url":"https://github.com/daddyz","followers_url":"https://api.github.com/users/daddyz/followers","following_url":"https://api.github.com/users/daddyz/following{/other_user}","gists_url":"https://api.github.com/users/daddyz/gists{/gist_id}","starred_url":"https://api.github.com/users/daddyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daddyz/subscriptions","organizations_url":"https://api.github.com/users/daddyz/orgs","repos_url":"https://api.github.com/users/daddyz/repos","events_url":"https://api.github.com/users/daddyz/events{/privacy}","received_events_url":"https://api.github.com/users/daddyz/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T05:21:39Z","updated_at":"2015-08-09T05:21:39Z","body":"@kidlab, Hi, I made a fix, please check against master branch. Thanks"}}