{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11337","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11337/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11337/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11337/events","html_url":"https://github.com/apache/spark/pull/11337","id":135912164,"number":11337,"title":"[SPARK-13441] [YARN] Fix NPE in yarn Client.createConfArchive method","user":{"login":"chtyim","id":885032,"avatar_url":"https://avatars.githubusercontent.com/u/885032?v=3","gravatar_id":"","url":"https://api.github.com/users/chtyim","html_url":"https://github.com/chtyim","followers_url":"https://api.github.com/users/chtyim/followers","following_url":"https://api.github.com/users/chtyim/following{/other_user}","gists_url":"https://api.github.com/users/chtyim/gists{/gist_id}","starred_url":"https://api.github.com/users/chtyim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtyim/subscriptions","organizations_url":"https://api.github.com/users/chtyim/orgs","repos_url":"https://api.github.com/users/chtyim/repos","events_url":"https://api.github.com/users/chtyim/events{/privacy}","received_events_url":"https://api.github.com/users/chtyim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-24T00:33:59Z","updated_at":"2016-02-25T08:41:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11337","html_url":"https://github.com/apache/spark/pull/11337","diff_url":"https://github.com/apache/spark/pull/11337.diff","patch_url":"https://github.com/apache/spark/pull/11337.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nInstead of using result of File.listFiles() directly, which may throw NPE, check for null first. If it is null, log a warning instead\r\n\r\n## How was the this patch tested?\r\n\r\nRan the ./dev/run-tests locally\r\nTested manually on a cluster\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/188671358","html_url":"https://github.com/apache/spark/pull/11337#issuecomment-188671358","issue_url":"https://api.github.com/repos/apache/spark/issues/11337","id":188671358,"user":{"login":"jerryshao","id":850797,"avatar_url":"https://avatars.githubusercontent.com/u/850797?v=3","gravatar_id":"","url":"https://api.github.com/users/jerryshao","html_url":"https://github.com/jerryshao","followers_url":"https://api.github.com/users/jerryshao/followers","following_url":"https://api.github.com/users/jerryshao/following{/other_user}","gists_url":"https://api.github.com/users/jerryshao/gists{/gist_id}","starred_url":"https://api.github.com/users/jerryshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerryshao/subscriptions","organizations_url":"https://api.github.com/users/jerryshao/orgs","repos_url":"https://api.github.com/users/jerryshao/repos","events_url":"https://api.github.com/users/jerryshao/events{/privacy}","received_events_url":"https://api.github.com/users/jerryshao/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T08:41:28Z","updated_at":"2016-02-25T08:41:28Z","body":"Is it better to throw an exception and fail fast? I'm wondering the behavior of application is still correct if we miss these Hadoop related configurations."}}