notification hooks

Description

hi,

I've got a simple hook like this:
{
"rules": [{
"notifications": [{
"address" : "robontho@silabs.com"
}]
}]
}

But I'm seeing the following erorrs in the log file:

2015-11-20 08:23:41,053 WARN [AtlassianEvent::thread-2] robontho @NSCU6Ox503x222393x2 1kmwzf4 127.0.0.1 SSH - git-receive-pack '/cad/ansible.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.1.0.jar:na]
at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.1.0.jar:na]
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:574) [bitbucket-service-impl-4.1.0.jar:na]
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:550) [bitbucket-service-impl-4.1.0.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.1.0.jar:na]
at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.postReceive(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.1.0.jar:na]
at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.onRefsChangedEvent(AsyncPostReceiveRepositoryHookAdapter.java:40) [bitbucket-service-impl-4.1.0.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.1.0.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(ThreadPoolExecutor.java:1142) [na:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
... 29 frames trimmed

Environment

None

Status

Assignee

Stefan Kohler

Reporter

Robbin Bonthond

Labels

None

SEN

None

Bitbucket version

None

Fix versions

Affects versions

3.1.0

Priority

Blocker
Configure