{"action":"opened","issue":{"url":"https://api.github.com/repos/RobotiumTech/robotium/issues/783","labels_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/783/comments","events_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/783/events","html_url":"https://github.com/RobotiumTech/robotium/issues/783","id":110041718,"number":783,"title":"Solo.getViews() may return List with nulls in it","user":{"login":"abutygin","id":1402275,"avatar_url":"https://avatars.githubusercontent.com/u/1402275?v=3","gravatar_id":"","url":"https://api.github.com/users/abutygin","html_url":"https://github.com/abutygin","followers_url":"https://api.github.com/users/abutygin/followers","following_url":"https://api.github.com/users/abutygin/following{/other_user}","gists_url":"https://api.github.com/users/abutygin/gists{/gist_id}","starred_url":"https://api.github.com/users/abutygin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abutygin/subscriptions","organizations_url":"https://api.github.com/users/abutygin/orgs","repos_url":"https://api.github.com/users/abutygin/repos","events_url":"https://api.github.com/users/abutygin/events{/privacy}","received_events_url":"https://api.github.com/users/abutygin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-06T15:58:04Z","updated_at":"2015-10-06T15:58:04Z","closed_at":null,"body":"It may occur on app screens with RecyclerView. \r\nIn ViewFetcher.addChildren method viewGroup.getChildAt(i) can return null. So  lines:\r\n```\r\nelse if(!onlySufficientlyVisible)\r\n   views.add(child);\r\n```\r\nshould be replaced by \r\n```\r\nelse if(!onlySufficientlyVisible && child != null)\r\n   views.add(child);\r\n```\r\nor check child just after viewGroup.getChildAt(i) :\r\n```\r\nfinal View child = viewGroup.getChildAt(i);\r\nif (child == null) \r\n    continue;\r\n```\r\n\r\n"}}