# Config\_db set/get is not working properly

**URL:** <https://verificationacademy.com/forums/t/config-db-set-get-is-not-working-properly/30668>\
**Category:** UVM\
**Tags:** UVM, config\_db, get\_config\_object, factory, set\_config\_\
**Created:** [May 22, 2015, 11:42am UTC](https://verificationacademy.com/forums/t/config-db-set-get-is-not-working-properly/30668 "2015-05-22T11:42:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [May 22, 2015, 12:18pm UTC](https://verificationacademy.com/forums/t/config-db-set-get-is-not-working-properly/30668/2 "2015-05-22T12:18:54Z")

</div>

The first argument to get() and set() is the context of the call. You need to use the appropriate context to ensure that the get()/set() calls are applied correctly. Using ‘null’ in your get() call will cause things not to get applied correctly.

Please review the [UVM Cookbook](https://verificationacademy.com/cookbook/resources/config_db) for the config\_db.

---

_[View the full topic](https://verificationacademy.com/forums/t/config-db-set-get-is-not-working-properly/30668)._
