{"action":"closed","number":145,"pull_request":{"url":"https://api.github.com/repos/apache/brooklyn-library/pulls/145","id":159546777,"html_url":"https://github.com/apache/brooklyn-library/pull/145","diff_url":"https://github.com/apache/brooklyn-library/pull/145.diff","patch_url":"https://github.com/apache/brooklyn-library/pull/145.patch","issue_url":"https://api.github.com/repos/apache/brooklyn-library/issues/145","number":145,"state":"closed","locked":false,"title":"Fix NPE in CouchbaseCluster enricher","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars2.githubusercontent.com/u/593113?v=4","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"body":"I saw this exception, which would happen when the enricher is triggered with the sensor `couchbase.cluster.clusterEntities` that has a null value.\r\n\r\n```\r\n2017-12-20T23:25:58,096 WARN  123 o.a.b.c.m.i.LocalSubscriptionManager [ager-uluKzucE-12] Error processing subscriptions to LSM.publishInitial(CouchbaseClusterImpl{id=fzixius98s}.Sensor: couchbase.cluster.clusterEntities (java.util.Set)=null @ 1513812358095): java.lang.NullPointerException\r\njava.lang.NullPointerException: null\r\n        at org.apache.brooklyn.entity.nosql.couchbase.CouchbaseClusterImpl$ListOfHostAndPort.apply(CouchbaseClusterImpl.java:293) ~[?:?]\r\n        at org.apache.brooklyn.entity.nosql.couchbase.CouchbaseClusterImpl$ListOfHostAndPort.apply(CouchbaseClusterImpl.java:290) ~[?:?]\r\n        at org.apache.brooklyn.enricher.stock.Transformer$4.apply(Transformer.java:98) ~[?:?]\r\n        at org.apache.brooklyn.enricher.stock.Transformer$4.apply(Transformer.java:95) ~[?:?]\r\n        at org.apache.brooklyn.enricher.stock.AbstractTransformer.compute(AbstractTransformer.java:163) ~[?:?]\r\n        at org.apache.brooklyn.enricher.stock.AbstractTransformer.onEvent(AbstractTransformer.java:157) ~[?:?]\r\n        at org.apache.brooklyn.core.mgmt.internal.LocalSubscriptionManager$1.run(LocalSubscriptionManager.java:351) ~[?:?]\r\n        at org.apache.brooklyn.core.mgmt.internal.LocalSubscriptionManager.submitPublishEvent(LocalSubscriptionManager.java:370) ~[?:?]\r\n        at org.apache.brooklyn.core.mgmt.internal.LocalSubscriptionManager.lambda$subscribe$0(LocalSubscriptionManager.java:204) ~[?:?]\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]\r\n        at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) [123:org.apache.brooklyn.core:1.0.0.20171219_1516]\r\n        at org.apache.brooklyn.util.core.task.SingleThreadedScheduler$1.call(SingleThreadedScheduler.java:116) [123:org.apache.brooklyn.core:1.0.0.20171219_1516]\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]\r\n        at java.lang.Thread.run(Thread.java:748) [?:?]\r\n```","created_at":"2017-12-21T00:04:27Z","updated_at":"2017-12-21T09:14:11Z","closed_at":"2017-12-21T09:14:11Z","merged_at":"2017-12-21T09:14:11Z","merge_commit_sha":"4a5208e582ae94e552cc9cb4135487696c61dac3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/brooklyn-library/pulls/145/commits","review_comments_url":"https://api.github.com/repos/apache/brooklyn-library/pulls/145/comments","review_comment_url":"https://api.github.com/repos/apache/brooklyn-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/brooklyn-library/issues/145/comments","statuses_url":"https://api.github.com/repos/apache/brooklyn-library/statuses/4a5208e582ae94e552cc9cb4135487696c61dac3","head":{"label":"aledsage:fix-npe-couchbase","ref":"fix-npe-couchbase","sha":"4a5208e582ae94e552cc9cb4135487696c61dac3","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars2.githubusercontent.com/u/593113?v=4","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"repo":{"id":50909033,"name":"brooklyn-library","full_name":"aledsage/brooklyn-library","owner":{"login":"aledsage","id":593113,"avatar_url":"https://avatars2.githubusercontent.com/u/593113?v=4","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aledsage/brooklyn-library","description":"Mirror of Apache Brooklyn library","fork":true,"url":"https://api.github.com/repos/aledsage/brooklyn-library","forks_url":"https://api.github.com/repos/aledsage/brooklyn-library/forks","keys_url":"https://api.github.com/repos/aledsage/brooklyn-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aledsage/brooklyn-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aledsage/brooklyn-library/teams","hooks_url":"https://api.github.com/repos/aledsage/brooklyn-library/hooks","issue_events_url":"https://api.github.com/repos/aledsage/brooklyn-library/issues/events{/number}","events_url":"https://api.github.com/repos/aledsage/brooklyn-library/events","assignees_url":"https://api.github.com/repos/aledsage/brooklyn-library/assignees{/user}","branches_url":"https://api.github.com/repos/aledsage/brooklyn-library/branches{/branch}","tags_url":"https://api.github.com/repos/aledsage/brooklyn-library/tags","blobs_url":"https://api.github.com/repos/aledsage/brooklyn-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aledsage/brooklyn-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aledsage/brooklyn-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/aledsage/brooklyn-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aledsage/brooklyn-library/statuses/{sha}","languages_url":"https://api.github.com/repos/aledsage/brooklyn-library/languages","stargazers_url":"https://api.github.com/repos/aledsage/brooklyn-library/stargazers","contributors_url":"https://api.github.com/repos/aledsage/brooklyn-library/contributors","subscribers_url":"https://api.github.com/repos/aledsage/brooklyn-library/subscribers","subscription_url":"https://api.github.com/repos/aledsage/brooklyn-library/subscription","commits_url":"https://api.github.com/repos/aledsage/brooklyn-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/aledsage/brooklyn-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/aledsage/brooklyn-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/aledsage/brooklyn-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/aledsage/brooklyn-library/contents/{+path}","compare_url":"https://api.github.com/repos/aledsage/brooklyn-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aledsage/brooklyn-library/merges","archive_url":"https://api.github.com/repos/aledsage/brooklyn-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aledsage/brooklyn-library/downloads","issues_url":"https://api.github.com/repos/aledsage/brooklyn-library/issues{/number}","pulls_url":"https://api.github.com/repos/aledsage/brooklyn-library/pulls{/number}","milestones_url":"https://api.github.com/repos/aledsage/brooklyn-library/milestones{/number}","notifications_url":"https://api.github.com/repos/aledsage/brooklyn-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aledsage/brooklyn-library/labels{/name}","releases_url":"https://api.github.com/repos/aledsage/brooklyn-library/releases{/id}","deployments_url":"https://api.github.com/repos/aledsage/brooklyn-library/deployments","created_at":"2016-02-02T09:23:58Z","updated_at":"2016-02-02T09:24:02Z","pushed_at":"2017-12-20T23:58:07Z","git_url":"git://github.com/aledsage/brooklyn-library.git","ssh_url":"git@github.com:aledsage/brooklyn-library.git","clone_url":"https://github.com/aledsage/brooklyn-library.git","svn_url":"https://github.com/aledsage/brooklyn-library","homepage":null,"size":13604,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"d3562cd7c51f0d4e821ee03376f54bd99cb65ce7","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":47246080,"name":"brooklyn-library","full_name":"apache/brooklyn-library","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/brooklyn-library","description":"Mirror of Apache Brooklyn library","fork":false,"url":"https://api.github.com/repos/apache/brooklyn-library","forks_url":"https://api.github.com/repos/apache/brooklyn-library/forks","keys_url":"https://api.github.com/repos/apache/brooklyn-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/brooklyn-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/brooklyn-library/teams","hooks_url":"https://api.github.com/repos/apache/brooklyn-library/hooks","issue_events_url":"https://api.github.com/repos/apache/brooklyn-library/issues/events{/number}","events_url":"https://api.github.com/repos/apache/brooklyn-library/events","assignees_url":"https://api.github.com/repos/apache/brooklyn-library/assignees{/user}","branches_url":"https://api.github.com/repos/apache/brooklyn-library/branches{/branch}","tags_url":"https://api.github.com/repos/apache/brooklyn-library/tags","blobs_url":"https://api.github.com/repos/apache/brooklyn-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/brooklyn-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/brooklyn-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/brooklyn-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/brooklyn-library/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/brooklyn-library/languages","stargazers_url":"https://api.github.com/repos/apache/brooklyn-library/stargazers","contributors_url":"https://api.github.com/repos/apache/brooklyn-library/contributors","subscribers_url":"https://api.github.com/repos/apache/brooklyn-library/subscribers","subscription_url":"https://api.github.com/repos/apache/brooklyn-library/subscription","commits_url":"https://api.github.com/repos/apache/brooklyn-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/brooklyn-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/brooklyn-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/brooklyn-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/brooklyn-library/contents/{+path}","compare_url":"https://api.github.com/repos/apache/brooklyn-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/brooklyn-library/merges","archive_url":"https://api.github.com/repos/apache/brooklyn-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/brooklyn-library/downloads","issues_url":"https://api.github.com/repos/apache/brooklyn-library/issues{/number}","pulls_url":"https://api.github.com/repos/apache/brooklyn-library/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/brooklyn-library/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/brooklyn-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/brooklyn-library/labels{/name}","releases_url":"https://api.github.com/repos/apache/brooklyn-library/releases{/id}","deployments_url":"https://api.github.com/repos/apache/brooklyn-library/deployments","created_at":"2015-12-02T08:00:06Z","updated_at":"2017-10-30T15:26:48Z","pushed_at":"2017-12-21T09:14:10Z","git_url":"git://github.com/apache/brooklyn-library.git","ssh_url":"git@github.com:apache/brooklyn-library.git","clone_url":"https://github.com/apache/brooklyn-library.git","svn_url":"https://github.com/apache/brooklyn-library","homepage":null,"size":13685,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":37,"open_issues":3,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/brooklyn-library/pulls/145"},"html":{"href":"https://github.com/apache/brooklyn-library/pull/145"},"issue":{"href":"https://api.github.com/repos/apache/brooklyn-library/issues/145"},"comments":{"href":"https://api.github.com/repos/apache/brooklyn-library/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/brooklyn-library/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/brooklyn-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/brooklyn-library/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/apache/brooklyn-library/statuses/4a5208e582ae94e552cc9cb4135487696c61dac3"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"asfgit","id":1341245,"avatar_url":"https://avatars1.githubusercontent.com/u/1341245?v=4","gravatar_id":"","url":"https://api.github.com/users/asfgit","html_url":"https://github.com/asfgit","followers_url":"https://api.github.com/users/asfgit/followers","following_url":"https://api.github.com/users/asfgit/following{/other_user}","gists_url":"https://api.github.com/users/asfgit/gists{/gist_id}","starred_url":"https://api.github.com/users/asfgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asfgit/subscriptions","organizations_url":"https://api.github.com/users/asfgit/orgs","repos_url":"https://api.github.com/users/asfgit/repos","events_url":"https://api.github.com/users/asfgit/events{/privacy}","received_events_url":"https://api.github.com/users/asfgit/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"asfgit"}}