{"action":"opened","issue":{"url":"https://api.github.com/repos/reportportal/agent-java-testNG/issues/23","repository_url":"https://api.github.com/repos/reportportal/agent-java-testNG","labels_url":"https://api.github.com/repos/reportportal/agent-java-testNG/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/reportportal/agent-java-testNG/issues/23/comments","events_url":"https://api.github.com/repos/reportportal/agent-java-testNG/issues/23/events","html_url":"https://github.com/reportportal/agent-java-testNG/issues/23","id":305438224,"number":23,"title":"NPE for skipped test","user":{"login":"pskvortsov","id":439803,"avatar_url":"https://avatars0.githubusercontent.com/u/439803?v=4","gravatar_id":"","url":"https://api.github.com/users/pskvortsov","html_url":"https://github.com/pskvortsov","followers_url":"https://api.github.com/users/pskvortsov/followers","following_url":"https://api.github.com/users/pskvortsov/following{/other_user}","gists_url":"https://api.github.com/users/pskvortsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pskvortsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pskvortsov/subscriptions","organizations_url":"https://api.github.com/users/pskvortsov/orgs","repos_url":"https://api.github.com/users/pskvortsov/repos","events_url":"https://api.github.com/users/pskvortsov/events{/privacy}","received_events_url":"https://api.github.com/users/pskvortsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T07:11:35Z","updated_at":"2018-03-15T07:11:35Z","closed_at":null,"author_association":"NONE","body":"Libs:\r\n```\r\n    rpTestngAgentVersion = '4.0.1'\r\n    rpLog4jVersion = '4.0.0'\r\n    rpLogbackVersion = '4.0.0'\r\n    testngVersion = '6.14.2'\r\n```\r\n\r\nSteps to reproduce:\r\n1. Create Example.java\r\n```\r\nimport org.testng.Assert;\r\nimport org.testng.annotations.BeforeMethod;\r\nimport org.testng.annotations.Test;\r\n\r\npublic class Example {\r\n\r\n    @BeforeMethod\r\n    public void before() {\r\n        Assert.assertTrue(false);\r\n    }\r\n\r\n    @Test\r\n    public void test() {\r\n        Assert.assertTrue(true);\r\n    }\r\n}\r\n```\r\n2. Add it to testng.xml\r\n```\r\n    <test name=\"Example test\">\r\n        <classes>\r\n            <class name=\"Example\" />\r\n        </classes>\r\n    </test>\r\n```\r\n3. Run via command line `./gradlew clean test`\r\n\r\nActual result: \r\n- test failed by NPE\r\n```\r\njava.lang.NullPointerException\r\n\tat com.epam.reportportal.testng.TestNGService.buildFinishTestMethodRq(TestNGService.java:324)\r\n\tat com.epam.reportportal.testng.TestNGService.finishTestMethod(TestNGService.java:155)\r\n\tat com.epam.reportportal.testng.BaseTestNGListener.onTestSkipped(BaseTestNGListener.java:103)\r\n```"}}
{"actor":{"display_login":"pskvortsov"}}