# Invoke nullable function property

**URL:** <https://discuss.kotlinlang.org/t/invoke-nullable-function-property/159>\
**Category:** Uncategorized\
**Created:** [August 19, 2015, 12:28am UTC](https://discuss.kotlinlang.org/t/invoke-nullable-function-property/159 "2015-08-19T00:28:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rshah](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rshah](https://discuss.kotlinlang.org/u/rshah)\
**Post date:** [August 19, 2015, 12:28am UTC](https://discuss.kotlinlang.org/t/invoke-nullable-function-property/159/1 "2015-08-19T00:28:57Z")

</div>

I have this:

&nbsp;

```kotlin
private var eventListener: (() -> Unit)? = null
```

what is the shorter way to invoke the eventListener other than below?

```kotlin
eventListener?.invoke()
```

Thank you.

---

<div class="post-metadata">

**Author:** ![pawegio](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pawegio/32/1469_2.png) [@pawegio](https://discuss.kotlinlang.org/u/pawegio)\
**Post date:** [August 19, 2015, 6:25am UTC](https://discuss.kotlinlang.org/t/invoke-nullable-function-property/159/2 "2015-08-19T06:25:32Z")

</div>

It is shortest.
