{"action":"closed","issue":{"url":"https://api.github.com/repos/dotless/dotless/issues/357","labels_url":"https://api.github.com/repos/dotless/dotless/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/dotless/dotless/issues/357/comments","events_url":"https://api.github.com/repos/dotless/dotless/issues/357/events","html_url":"https://github.com/dotless/dotless/issues/357","id":27053479,"number":357,"title":"NullReferenceException when parsing invalid LESS","user":{"login":"tomap","id":153854,"avatar_url":"https://avatars.githubusercontent.com/u/153854?v=3","gravatar_id":"","url":"https://api.github.com/users/tomap","html_url":"https://github.com/tomap","followers_url":"https://api.github.com/users/tomap/followers","following_url":"https://api.github.com/users/tomap/following{/other_user}","gists_url":"https://api.github.com/users/tomap/gists{/gist_id}","starred_url":"https://api.github.com/users/tomap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomap/subscriptions","organizations_url":"https://api.github.com/users/tomap/orgs","repos_url":"https://api.github.com/users/tomap/repos","events_url":"https://api.github.com/users/tomap/events{/privacy}","received_events_url":"https://api.github.com/users/tomap/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotless/dotless/milestones/13","html_url":"https://github.com/dotless/dotless/milestones/1.4.3","labels_url":"https://api.github.com/repos/dotless/dotless/milestones/13/labels","id":995399,"number":13,"title":"1.4.3","description":"","creator":{"login":"rytmis","id":121952,"avatar_url":"https://avatars.githubusercontent.com/u/121952?v=3","gravatar_id":"","url":"https://api.github.com/users/rytmis","html_url":"https://github.com/rytmis","followers_url":"https://api.github.com/users/rytmis/followers","following_url":"https://api.github.com/users/rytmis/following{/other_user}","gists_url":"https://api.github.com/users/rytmis/gists{/gist_id}","starred_url":"https://api.github.com/users/rytmis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rytmis/subscriptions","organizations_url":"https://api.github.com/users/rytmis/orgs","repos_url":"https://api.github.com/users/rytmis/repos","events_url":"https://api.github.com/users/rytmis/events{/privacy}","received_events_url":"https://api.github.com/users/rytmis/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":6,"state":"open","created_at":"2015-02-25T16:12:45Z","updated_at":"2015-02-26T12:17:46Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-02-06T14:36:56Z","updated_at":"2015-02-26T12:17:46Z","closed_at":"2015-02-26T12:17:46Z","body":"Hi,\r\n\r\ndotless is producing a NullReferenceException when parsing invalid LESS:\r\nI have created a simple LESS to reproduce this issue:\r\n\r\n ````\r\n@DestructiveBackgroundColor:1;\r\n@DestructiveTextColorHover:1;\r\nDestructiveBackgroundColorHover:1;\r\n/*comment*/\r\n@SignOutLogoColor:@DestructiveBackgroundColor;\r\n@SignOutColorHover:@DestructiveTextColorHover\r\n@SignOutBackgroundHover@:@DestructiveBackgroundColorHover;\r\n````\r\nThere is a missing \";\" on the 6th line\r\n\r\nHere is the error message:\r\n````\r\nSystem.NullReferenceException occurred\r\n  HResult=-2147467261\r\n  Message=La référence d'objet n'est pas définie à une instance d'un objet.\r\n  Source=dotless.Core\r\n  StackTrace:\r\n       à dotless.Core.Parser.Parsers.Directive(Parser parser) dans c:\\dev\\dotless\\src\\dotless.Core\\Parser\\Parsers.cs:ligne 1126\r\n  InnerException: \r\n````\r\n\r\nAnd here is a unit test to add to VariableFixture.cs to reproduce this issue:\r\n````\r\n[Test]\r\n        public void ThrowsIfMissingComma2()\r\n        {\r\n            var input = @\"\r\n@DestructiveBackgroundColor:1;\r\n@DestructiveTextColorHover:1;\r\nDestructiveBackgroundColorHover:1;\r\n/*comment*/\r\n\r\n@SignOutLogoColor:@DestructiveBackgroundColor;\r\n@SignOutColorHover:@DestructiveTextColorHover\r\n@SignOutBackgroundHover@:@DestructiveBackgroundColorHover;\r\n\r\n\";\r\n\r\n            AssertError(\"some good error message\", \"  width: @var;\", 2, 9, input);\r\n        }\r\n````\r\n\r\nThank you"}}