{"action":"created","issue":{"url":"https://api.github.com/repos/codice/ddf/issues/1025","repository_url":"https://api.github.com/repos/codice/ddf","labels_url":"https://api.github.com/repos/codice/ddf/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/codice/ddf/issues/1025/comments","events_url":"https://api.github.com/repos/codice/ddf/issues/1025/events","html_url":"https://github.com/codice/ddf/pull/1025","id":166709452,"number":1025,"title":"DDF-1940: Fixes NullPointerException when trying to add sourceQueries in SolrCache when SourceIds is null","user":{"login":"emmberk","id":8041246,"avatar_url":"https://avatars.githubusercontent.com/u/8041246?v=3","gravatar_id":"","url":"https://api.github.com/users/emmberk","html_url":"https://github.com/emmberk","followers_url":"https://api.github.com/users/emmberk/followers","following_url":"https://api.github.com/users/emmberk/following{/other_user}","gists_url":"https://api.github.com/users/emmberk/gists{/gist_id}","starred_url":"https://api.github.com/users/emmberk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmberk/subscriptions","organizations_url":"https://api.github.com/users/emmberk/orgs","repos_url":"https://api.github.com/users/emmberk/repos","events_url":"https://api.github.com/users/emmberk/events{/privacy}","received_events_url":"https://api.github.com/users/emmberk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"coyotesqrl","id":1469860,"avatar_url":"https://avatars.githubusercontent.com/u/1469860?v=3","gravatar_id":"","url":"https://api.github.com/users/coyotesqrl","html_url":"https://github.com/coyotesqrl","followers_url":"https://api.github.com/users/coyotesqrl/followers","following_url":"https://api.github.com/users/coyotesqrl/following{/other_user}","gists_url":"https://api.github.com/users/coyotesqrl/gists{/gist_id}","starred_url":"https://api.github.com/users/coyotesqrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyotesqrl/subscriptions","organizations_url":"https://api.github.com/users/coyotesqrl/orgs","repos_url":"https://api.github.com/users/coyotesqrl/repos","events_url":"https://api.github.com/users/coyotesqrl/events{/privacy}","received_events_url":"https://api.github.com/users/coyotesqrl/received_events","type":"User","site_admin":false},"assignees":[{"login":"coyotesqrl","id":1469860,"avatar_url":"https://avatars.githubusercontent.com/u/1469860?v=3","gravatar_id":"","url":"https://api.github.com/users/coyotesqrl","html_url":"https://github.com/coyotesqrl","followers_url":"https://api.github.com/users/coyotesqrl/followers","following_url":"https://api.github.com/users/coyotesqrl/following{/other_user}","gists_url":"https://api.github.com/users/coyotesqrl/gists{/gist_id}","starred_url":"https://api.github.com/users/coyotesqrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyotesqrl/subscriptions","organizations_url":"https://api.github.com/users/coyotesqrl/orgs","repos_url":"https://api.github.com/users/coyotesqrl/repos","events_url":"https://api.github.com/users/coyotesqrl/events{/privacy}","received_events_url":"https://api.github.com/users/coyotesqrl/received_events","type":"User","site_admin":false},{"login":"jaymcnallie","id":4419383,"avatar_url":"https://avatars.githubusercontent.com/u/4419383?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymcnallie","html_url":"https://github.com/jaymcnallie","followers_url":"https://api.github.com/users/jaymcnallie/followers","following_url":"https://api.github.com/users/jaymcnallie/following{/other_user}","gists_url":"https://api.github.com/users/jaymcnallie/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymcnallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymcnallie/subscriptions","organizations_url":"https://api.github.com/users/jaymcnallie/orgs","repos_url":"https://api.github.com/users/jaymcnallie/repos","events_url":"https://api.github.com/users/jaymcnallie/events{/privacy}","received_events_url":"https://api.github.com/users/jaymcnallie/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/codice/ddf/milestones/2","html_url":"https://github.com/codice/ddf/milestones/2.9.2","labels_url":"https://api.github.com/repos/codice/ddf/milestones/2/labels","id":1866261,"number":2,"title":"2.9.2","description":"Bug fixes since 2.9.1","creator":{"login":"shaundmorris","id":4359166,"avatar_url":"https://avatars.githubusercontent.com/u/4359166?v=3","gravatar_id":"","url":"https://api.github.com/users/shaundmorris","html_url":"https://github.com/shaundmorris","followers_url":"https://api.github.com/users/shaundmorris/followers","following_url":"https://api.github.com/users/shaundmorris/following{/other_user}","gists_url":"https://api.github.com/users/shaundmorris/gists{/gist_id}","starred_url":"https://api.github.com/users/shaundmorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaundmorris/subscriptions","organizations_url":"https://api.github.com/users/shaundmorris/orgs","repos_url":"https://api.github.com/users/shaundmorris/repos","events_url":"https://api.github.com/users/shaundmorris/events{/privacy}","received_events_url":"https://api.github.com/users/shaundmorris/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":7,"state":"open","created_at":"2016-07-05T22:33:27Z","updated_at":"2016-07-21T16:25:10Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-07-21T00:02:12Z","updated_at":"2016-07-21T16:32:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/1025","html_url":"https://github.com/codice/ddf/pull/1025","diff_url":"https://github.com/codice/ddf/pull/1025.diff","patch_url":"https://github.com/codice/ddf/pull/1025.patch"},"body":"#### What does this PR do?\r\nFixes this NullPointerException when performing a search via the Search UI:\r\n```bash\r\n16:19:23,417 | WARN  | ool-51-thread-17 | talog.cache.solr.impl.SortedQueryMonitor  161 | re-standardframework | Couldn't get results from completed federated query. ddf.catalog.cache.solr.impl.SolrCacheSource, null\r\njava.lang.NullPointerException\r\njava.util.concurrent.ExecutionException: java.lang.NullPointerException\r\n\tat java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_73]\r\n\tat java.util.concurrent.FutureTask.get(FutureTask.java:192)[:1.8.0_73]\r\n\tat ddf.catalog.cache.solr.impl.SortedQueryMonitor.run(SortedQueryMonitor.java:135)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_73]\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_73]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_73]\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_73]\r\n\tat java.lang.Thread.run(Thread.java:745)[:1.8.0_73]\r\nCaused by: java.lang.NullPointerException\r\n\tat ddf.catalog.cache.solr.impl.SolrCache$CacheSolrMetacardClient.postAdapt(SolrCache.java:396)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat ddf.catalog.source.solr.SolrMetacardClient.getSolrQuery(SolrMetacardClient.java:261)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat ddf.catalog.source.solr.SolrMetacardClient.query(SolrMetacardClient.java:94)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat ddf.catalog.cache.solr.impl.SolrCache.query(SolrCache.java:135)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat ddf.catalog.cache.solr.impl.SolrCacheSource.query(SolrCacheSource.java:73)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat ddf.catalog.cache.solr.impl.CachingFederationStrategy$CallableSourceResponse.call(CachingFederationStrategy.java:545)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat ddf.catalog.cache.solr.impl.CachingFederationStrategy$CallableSourceResponse.call(CachingFederationStrategy.java:531)[329:catalog-core-standardframework:2.10.0.SNAPSHOT]\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_73]\r\n\t... 5 more\r\n```\r\n#### Who is reviewing it (please choose AT LEAST two reviewers that need to approve the PR before it can get merged; if a component team is listed, at least one of its members needs to approve)?\r\n@peterhuffer @troymohl\r\n#### Choose 2 committers to review/merge the PR (please choose ONLY two committers from below, delete the rest).\r\n@jaymcnallie\r\n@coyotesqrl\r\n#### How should this be tested?\r\nClick Search on the Search UI (you don't need to configure any sources), and you should not see the NullPointerException warning in the log. Searches should still produce expected results.\r\n#### Any background context you want to provide?\r\nThe warning was logged each time that the Search button was clicked.\r\n#### What are the relevant tickets?\r\nDDF-1940\r\n#### Screenshots (if appropriate)\r\n#### Checklist:\r\n- [ ] Documentation Updated\r\n- [ ] Update / Add Unit Tests\r\n- [ ] Update / Add Integration Tests"},"comment":{"url":"https://api.github.com/repos/codice/ddf/issues/comments/234309474","html_url":"https://github.com/codice/ddf/pull/1025#issuecomment-234309474","issue_url":"https://api.github.com/repos/codice/ddf/issues/1025","id":234309474,"user":{"login":"jaymcnallie","id":4419383,"avatar_url":"https://avatars.githubusercontent.com/u/4419383?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymcnallie","html_url":"https://github.com/jaymcnallie","followers_url":"https://api.github.com/users/jaymcnallie/followers","following_url":"https://api.github.com/users/jaymcnallie/following{/other_user}","gists_url":"https://api.github.com/users/jaymcnallie/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymcnallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymcnallie/subscriptions","organizations_url":"https://api.github.com/users/jaymcnallie/orgs","repos_url":"https://api.github.com/users/jaymcnallie/repos","events_url":"https://api.github.com/users/jaymcnallie/events{/privacy}","received_events_url":"https://api.github.com/users/jaymcnallie/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T16:32:28Z","updated_at":"2016-07-21T16:32:28Z","body":"👍 "}}
{"actor":{"display_login":"jaymcnallie"}}