# context.getExecutionManager() returns Null

**URL:** <https://forum.inductiveautomation.com/t/context-getexecutionmanager-returns-null/65820>\
**Category:** Module Development\
**Tags:** sdk\
**Created:** [October 28, 2022, 5:47pm UTC](https://forum.inductiveautomation.com/t/context-getexecutionmanager-returns-null/65820 "2022-10-28T17:47:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zak\_Taylor](https://avatars.discourse-cdn.com/v4/letter/z/4af34b/32.png) [@Zak\_Taylor](https://forum.inductiveautomation.com/u/Zak_Taylor)\
**Post date:** [October 28, 2022, 5:47pm UTC](https://forum.inductiveautomation.com/t/context-getexecutionmanager-returns-null/65820/1 "2022-10-28T17:47:32Z")

</div>

Hello,

I am fairly new to ignition and I am following the example for a managed tag provider using the SDK [ignition-sdk-examples/managed-tag-provider at master · inductiveautomation/ignition-sdk-examples (github.com)](https://github.com/inductiveautomation/ignition-sdk-examples/tree/master/managed-tag-provider). I am trying to use a similar setup on my localhost. However, when I load this into Ignition, I am getting a null pointer exception at the time of calling GatewayContext.getExecutionManager() and I want this to be a regularly scheduled task.

Does anybody have tips/ideas why this might be happening?

Thank you.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 28, 2022, 7:02pm UTC](https://forum.inductiveautomation.com/t/context-getexecutionmanager-returns-null/65820/2 "2022-10-28T19:02:17Z")

</div>

Show your code.

---

<div class="post-metadata">

**Author:** ![Zak\_Taylor](https://avatars.discourse-cdn.com/v4/letter/z/4af34b/32.png) [@Zak\_Taylor](https://forum.inductiveautomation.com/u/Zak_Taylor)\
**Post date:** [October 28, 2022, 7:51pm UTC](https://forum.inductiveautomation.com/t/context-getexecutionmanager-returns-null/65820/3 "2022-10-28T19:51:25Z")

</div>

Silly mistake on my end. When making my updates, I removed the line of the setup function that was setting the context.. 🙈
