{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5042","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5042/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5042/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5042/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5042","id":145781150,"number":5042,"title":"[lua] \"attempt to compare number with nil\" when calling Sys.systemName()","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T19:28:18Z","updated_at":"2016-04-04T19:28:18Z","closed_at":null,"body":"Tested with Lua 5.2.3 on Ubuntu.\r\n\r\n```haxe\r\nclass Main {\r\n\tpublic static function main() {\r\n\t\ttrace(Sys.systemName());\r\n\t}\r\n}\r\n```\r\n\r\n```\r\nlua: run.lua:698: attempt to compare number with nil\r\nstack traceback:\r\n\trun.lua:698: in function 'systemName'\r\n\trun.lua:492: in function 'main'\r\n\trun.lua:1192: in main chunk\r\n\t[C]: in ?\r\n```\r\n\r\nLine 698:\r\n\r\n```lua\r\nif ((_G.string.find(_G.string.lower(s),\"bsd\")) > (0)) then \r\n```"}}