# Issue with \`xTimerIsTimerActive()\`

**URL:** <https://forums.freertos.org/t/issue-with-xtimeristimeractive/6489>\
**Category:** Kernel\
**Created:** [April 6, 2017, 10:33am UTC](https://forums.freertos.org/t/issue-with-xtimeristimeractive/6489 "2017-04-06T10:33:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 6, 2017, 10:33am UTC](https://forums.freertos.org/t/issue-with-xtimeristimeractive/6489/1 "2017-04-06T10:33:53Z")

</div>

**[gpathak](https://sourceforge.net/u/gpathak/)** wrote on [Thursday, April 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/0e1be5f7/#3064):

Hi,  
I am using FreeRTOS verison 8.1.2 and I am facing issue with `xTimerIsTimerActive()` function. This function always returns `pdTRUE` even if the timer is not created.  
What could be the issue?

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [April 6, 2017, 10:51am UTC](https://forums.freertos.org/t/issue-with-xtimeristimeractive/6489/2 "2017-04-06T10:51:25Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Thursday, April 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/0e1be5f7/#3a54):

I’m not sure why you would call `xTimerIsTimerActive()` without creating a valid timer.

Why don’t you initialise your timers and semaphores with `NULL`, and check for `NULL` yourself before calling API’s that are supposed to work with them?
