{"action":"created","issue":{"url":"https://api.github.com/repos/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172","labels_url":"https://api.github.com/repos/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172/comments","events_url":"https://api.github.com/repos/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172/events","html_url":"https://github.com/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172","id":127255013,"number":172,"title":"NPE when using gitlab webhooks","user":{"login":"jsirex","id":1346569,"avatar_url":"https://avatars.githubusercontent.com/u/1346569?v=3","gravatar_id":"","url":"https://api.github.com/users/jsirex","html_url":"https://github.com/jsirex","followers_url":"https://api.github.com/users/jsirex/followers","following_url":"https://api.github.com/users/jsirex/following{/other_user}","gists_url":"https://api.github.com/users/jsirex/gists{/gist_id}","starred_url":"https://api.github.com/users/jsirex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsirex/subscriptions","organizations_url":"https://api.github.com/users/jsirex/orgs","repos_url":"https://api.github.com/users/jsirex/repos","events_url":"https://api.github.com/users/jsirex/events{/privacy}","received_events_url":"https://api.github.com/users/jsirex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T15:54:47Z","updated_at":"2016-01-21T04:40:23Z","closed_at":null,"body":"```\r\nJan 18, 2016 6:37:07 PM FINE org.jenkinsci.plugins.gitlab.GitlabWebhooks\r\nMergeRequest{object_attributes=ObjectAttributes{action='update', id=55291, iid=21, target_branch='merge/target', target_project_id=1971, target=MergeRequestRepository{name='platform', http_url='https://git/group/platform.git', ssh_url='git@git:group/platform.git'}, source_branch='merge/source', source_project_id=1971, source=MergeRequestRepository{name='platform', http_url='https://git/group/platform.git', ssh_url='git@git:group/platform.git'}, last_commit=org.jenkinsci.plugins.gitlab.models.webhook.Commit@ea48559}}\r\nJan 18, 2016 6:37:07 PM SEVERE org.jenkinsci.plugins.gitlab.GitlabWebhooks doStart\r\nThere was an error\r\nJan 18, 2016 6:37:07 PM FINER GitlabWebhooks doStart\r\nTHROW\r\njava.lang.NullPointerException\r\n\tat org.jenkinsci.plugins.gitlab.GitlabWebhooks.doStart(GitlabWebhooks.java:75)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)\r\n\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)\r\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)\r\n\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)\r\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)\r\n\tat org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:411)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)\r\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)\r\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)\r\n\tat hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)\r\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129)\r\n\tat net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:200)\r\n\tat net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178)\r\n\tat net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85)\r\n\tat org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:99)\r\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129)\r\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\n\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\r\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)\r\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)\r\n\tat winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/timols/jenkins-gitlab-merge-request-builder-plugin/issues/comments/173449391","html_url":"https://github.com/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172#issuecomment-173449391","issue_url":"https://api.github.com/repos/timols/jenkins-gitlab-merge-request-builder-plugin/issues/172","id":173449391,"user":{"login":"runsisi","id":2339258,"avatar_url":"https://avatars.githubusercontent.com/u/2339258?v=3","gravatar_id":"","url":"https://api.github.com/users/runsisi","html_url":"https://github.com/runsisi","followers_url":"https://api.github.com/users/runsisi/followers","following_url":"https://api.github.com/users/runsisi/following{/other_user}","gists_url":"https://api.github.com/users/runsisi/gists{/gist_id}","starred_url":"https://api.github.com/users/runsisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runsisi/subscriptions","organizations_url":"https://api.github.com/users/runsisi/orgs","repos_url":"https://api.github.com/users/runsisi/repos","events_url":"https://api.github.com/users/runsisi/events{/privacy}","received_events_url":"https://api.github.com/users/runsisi/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T04:40:22Z","updated_at":"2016-01-21T04:40:22Z","body":"both `jenkins-gitlab-merge-request-builder-plugin` and `gitlab-plugin` have the same issue, we need to get the MR info from target project instead of source project. i am not sure if this is because the gitlab guys have changed the web api and we still stick to the old api, so i did not create a PR for this and other related."}}