{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-hazelcast/issues/52","repository_url":"https://api.github.com/repos/vert-x3/vertx-hazelcast","labels_url":"https://api.github.com/repos/vert-x3/vertx-hazelcast/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-hazelcast/issues/52/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-hazelcast/issues/52/events","html_url":"https://github.com/vert-x3/vertx-hazelcast/issues/52","id":194009330,"number":52,"title":"NullPointer in sendToSubs","user":{"login":"inno-steffg","id":5442481,"avatar_url":"https://avatars.githubusercontent.com/u/5442481?v=3","gravatar_id":"","url":"https://api.github.com/users/inno-steffg","html_url":"https://github.com/inno-steffg","followers_url":"https://api.github.com/users/inno-steffg/followers","following_url":"https://api.github.com/users/inno-steffg/following{/other_user}","gists_url":"https://api.github.com/users/inno-steffg/gists{/gist_id}","starred_url":"https://api.github.com/users/inno-steffg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inno-steffg/subscriptions","organizations_url":"https://api.github.com/users/inno-steffg/orgs","repos_url":"https://api.github.com/users/inno-steffg/repos","events_url":"https://api.github.com/users/inno-steffg/events{/privacy}","received_events_url":"https://api.github.com/users/inno-steffg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-07T10:16:36Z","updated_at":"2016-12-09T10:08:58Z","closed_at":null,"body":"We're using vertx 3.3.3 in a productive environment clustered with hazelcast.\r\nWe are observing the following NullPointerException from time to time:\r\n```\r\n2016-12-07 09:57:08,063 ERROR [vert.x-eventloop-thread-4] [] io.vertx.core.impl.ContextImpl - Unhandled exception\r\njava.lang.NullPointerException\r\n\tat io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.sendToSubs(ClusteredEventBus.java:279)\r\n\tat io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.lambda$sendOrPub$133(ClusteredEventBus.java:182)\r\n\tat io.vertx.spi.cluster.hazelcast.impl.HazelcastAsyncMultiMap.lambda$get$30(HazelcastAsyncMultiMap.java:116)\r\n\tat io.vertx.core.impl.FutureImpl.checkCallHandler(FutureImpl.java:158)\r\n\tat io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:100)\r\n\tat io.vertx.core.impl.ContextImpl.lambda$null$16(ContextImpl.java:305)\r\n\tat io.vertx.core.impl.ContextImpl.lambda$wrapTask$18(ContextImpl.java:335)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)\r\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nI guess, this happens when we're unregistering an eventbus consumer at the same time the sendToSubs is trying to submit a message to it.\r\n"},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-hazelcast/issues/comments/265978359","html_url":"https://github.com/vert-x3/vertx-hazelcast/issues/52#issuecomment-265978359","issue_url":"https://api.github.com/repos/vert-x3/vertx-hazelcast/issues/52","id":265978359,"user":{"login":"tsegismont","id":1500598,"avatar_url":"https://avatars.githubusercontent.com/u/1500598?v=3","gravatar_id":"","url":"https://api.github.com/users/tsegismont","html_url":"https://github.com/tsegismont","followers_url":"https://api.github.com/users/tsegismont/followers","following_url":"https://api.github.com/users/tsegismont/following{/other_user}","gists_url":"https://api.github.com/users/tsegismont/gists{/gist_id}","starred_url":"https://api.github.com/users/tsegismont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsegismont/subscriptions","organizations_url":"https://api.github.com/users/tsegismont/orgs","repos_url":"https://api.github.com/users/tsegismont/repos","events_url":"https://api.github.com/users/tsegismont/events{/privacy}","received_events_url":"https://api.github.com/users/tsegismont/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T10:08:58Z","updated_at":"2016-12-09T10:08:58Z","body":"Could you put together a small reproducer?"}}
{"actor":{"display_login":"tsegismont"}}