{"action":"closed","issue":{"url":"https://api.github.com/repos/dmarcotte/github-markdown-preview/issues/41","repository_url":"https://api.github.com/repos/dmarcotte/github-markdown-preview","labels_url":"https://api.github.com/repos/dmarcotte/github-markdown-preview/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/dmarcotte/github-markdown-preview/issues/41/comments","events_url":"https://api.github.com/repos/dmarcotte/github-markdown-preview/issues/41/events","html_url":"https://github.com/dmarcotte/github-markdown-preview/issues/41","id":138262113,"number":41,"title":"Nil reference parsing empty list items","user":{"login":"chronodm","id":2934647,"avatar_url":"https://avatars.githubusercontent.com/u/2934647?v=3","gravatar_id":"","url":"https://api.github.com/users/chronodm","html_url":"https://github.com/chronodm","followers_url":"https://api.github.com/users/chronodm/followers","following_url":"https://api.github.com/users/chronodm/following{/other_user}","gists_url":"https://api.github.com/users/chronodm/gists{/gist_id}","starred_url":"https://api.github.com/users/chronodm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronodm/subscriptions","organizations_url":"https://api.github.com/users/chronodm/orgs","repos_url":"https://api.github.com/users/chronodm/repos","events_url":"https://api.github.com/users/chronodm/events{/privacy}","received_events_url":"https://api.github.com/users/chronodm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T18:38:15Z","updated_at":"2016-03-04T00:35:22Z","closed_at":"2016-03-04T00:35:22Z","body":"Steps to reproduce:\r\n- Create Markdown document containing a list with an empty item, e.g.\r\n\r\n```\r\n-\r\n```\r\n\r\n- Preview the document\r\n\r\nExpected:\r\n- Document previews correctly\r\n\r\nActual:\r\n- `github-markdown-preview` exits with the stack trace below:\r\n\r\n```\r\n$ /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/github-markdown-preview-4.0.0/lib/github-markdown-preview/filter/task_list_filter.rb:30:in `block in call': undefined method `text?' for nil:NilClass (NoMethodError)\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/nokogiri-1.6.5/lib/nokogiri/xml/node_set.rb:237:in `block in each'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/nokogiri-1.6.5/lib/nokogiri/xml/node_set.rb:236:in `upto'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/nokogiri-1.6.5/lib/nokogiri/xml/node_set.rb:236:in `each'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/github-markdown-preview-4.0.0/lib/github-markdown-preview/filter/task_list_filter.rb:38:in `call'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline/filter.rb:130:in `call'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:121:in `block in perform_filter'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:159:in `instrument'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:120:in `perform_filter'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:106:in `block (2 levels) in call'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:105:in `each'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:105:in `inject'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:105:in `block in call'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:159:in `instrument'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/html-pipeline-2.0/lib/html/pipeline.rb:103:in `call'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/github-markdown-preview-4.0.0/lib/github-markdown-preview/html_preview.rb:96:in `update'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/github-markdown-preview-4.0.0/lib/github-markdown-preview/html_preview.rb:44:in `initialize'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/github-markdown-preview-4.0.0/bin/github-markdown-preview:31:in `new'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/gems/github-markdown-preview-4.0.0/bin/github-markdown-preview:31:in `<top (required)>'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/bin/github-markdown-preview:23:in `load'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/bin/github-markdown-preview:23:in `<main>'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'\r\n\tfrom /Users/dmoles/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'\r\n```"}}