Exception in logs caused by repository notification hook

Description

We have generic repository hooks configured via JSON, but the generic hook email isn't being sent on push. If users subscribe to watch specifically, they do get individual emails on push.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2015-11-18 14:28:01,971 WARN [AtlassianEvent::thread-1] [USERNAME REDACTED] @7M85WHx868x48800x0 16ds1zq [IP REDACTED] SSH - git-receive-pack '/test/test.git' c.a.s.i.h.r.AsyncPostReceiveRepositoryHookAdapter Push Event Hook nl.stefankohler.bitbucket.notifyr.hook.JsonNotificationHook failed. java.lang.NullPointerException: null at org.springframework.util.AntPathMatcher.doMatch(AntPathMatcher.java:169) ~[spring-core-4.1.7.RELEASE.jar:4.1.7.RELEASE] at org.springframework.util.AntPathMatcher.match(AntPathMatcher.java:152) ~[spring-core-4.1.7.RELEASE.jar:4.1.7.RELEASE] at nl.stefankohler.bitbucket.notifyr.model.HookConfiguration$Rule.matches(HookConfiguration.java:56) ~[na:na] at nl.stefankohler.bitbucket.notifyr.hook.JsonNotificationHook.processUpdates(JsonNotificationHook.java:86) ~[na:na] at nl.stefankohler.bitbucket.notifyr.hook.JsonNotificationHook.postReceive(JsonNotificationHook.java:67) ~[na:na] at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:49) [bitbucket-service-impl-4.0.2.jar:na] at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.0.2.jar:na] at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:574) [bitbucket-service-impl-4.0.2.jar:na] at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:550) [bitbucket-service-impl-4.0.2.jar:na] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) [spring-tx-4.1.7.RELEASE.jar:na] at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.visitEnabledHooks(DefaultRepositoryHookService.java:280) [bitbucket-service-impl-4.0.2.jar:na] at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.postReceive(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.0.2.jar:na] at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.onRefsChangedEvent(AsyncPostReceiveRepositoryHookAdapter.java:40) [bitbucket-service-impl-4.0.2.jar:na] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) [atlassian-event-3.0.0.jar:na] at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:94) [bitbucket-platform-4.0.2.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) [atlassian-event-3.0.0.jar:na] at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34) [sal-core-3.0.5.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_60] at java.lang.Thread.run(Unknown Source) [na:1.8.0_60] ... 29 frames trimmed

Environment

None

Status

Assignee

Stefan Kohler

Reporter

Daniel Roy

Labels

None

SEN

None

Bitbucket version

None

Fix versions

Affects versions

3.1.0

Priority

Blocker
Configure