{"action":"opened","issue":{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/376","labels_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/376/comments","events_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/376/events","html_url":"https://github.com/lightblue-platform/lightblue-core/issues/376","id":69154611,"number":376,"title":"Bug when performing find on entity with hook","user":{"login":"dcrissman","id":1878960,"avatar_url":"https://avatars.githubusercontent.com/u/1878960?v=3","gravatar_id":"","url":"https://api.github.com/users/dcrissman","html_url":"https://github.com/dcrissman","followers_url":"https://api.github.com/users/dcrissman/followers","following_url":"https://api.github.com/users/dcrissman/following{/other_user}","gists_url":"https://api.github.com/users/dcrissman/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrissman/subscriptions","organizations_url":"https://api.github.com/users/dcrissman/orgs","repos_url":"https://api.github.com/users/dcrissman/repos","events_url":"https://api.github.com/users/dcrissman/events{/privacy}","received_events_url":"https://api.github.com/users/dcrissman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-17T14:55:41Z","updated_at":"2015-04-17T14:55:41Z","closed_at":null,"body":"After fixing https://github.com/lightblue-platform/lightblue-audit-hook/issues/28, I am now getting this exception from data nodes when I execute a find against the entity.\r\n\r\n```\r\n2015-04-17 10:35:03,962 [hystrix-FindCommand-10] ERROR [com.redhat.lightblue.crud.mongo.MongoCRUDController] null: java.lang.NullPointerException\r\n\tat com.redhat.lightblue.hooks.HookManager.queueHooks(HookManager.java:198)\r\n\tat com.redhat.lightblue.hooks.HookManager.queueHooks(HookManager.java:141)\r\n\tat com.redhat.lightblue.crud.mongo.MongoCRUDController.find(MongoCRUDController.java:347)\r\n\tat com.redhat.lightblue.mediator.SimpleFindImpl.find(SimpleFindImpl.java:52)\r\n\tat com.redhat.lightblue.mediator.Mediator.find(Mediator.java:346)\r\n\tat com.redhat.lightblue.rest.crud.hystrix.FindCommand.run(FindCommand.java:66)\r\n\tat com.redhat.lightblue.rest.crud.hystrix.FindCommand.run(FindCommand.java:36)\r\n\tat com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:294)\r\n\tat com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:289)\r\n\tat rx.Observable$1.call(Observable.java:144)\r\n\tat rx.Observable$1.call(Observable.java:136)\r\n\tat rx.Observable$1.call(Observable.java:144)\r\n\tat rx.Observable$1.call(Observable.java:136)\r\n\tat rx.Observable$1.call(Observable.java:144)\r\n\tat rx.Observable$1.call(Observable.java:136)\r\n\tat rx.Observable.unsafeSubscribe(Observable.java:7466)\r\n\tat com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:514)\r\n\tat com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:497)\r\n\tat rx.Observable.unsafeSubscribe(Observable.java:7466)\r\n\tat rx.internal.operators.OperatorSubscribeOn$1$1.call(OperatorSubscribeOn.java:62)\r\n\tat com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56)\r\n\tat com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:47)\r\n\tat com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69)\r\n\tat rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:47)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\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```"}}