# Unity error: NullReferenceException

**URL:** <https://forum.convai.com/t/unity-error-nullreferenceexception/4624>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [July 17, 2025, 7:57am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624 "2025-07-17T07:57:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![user19](https://avatars.discourse-cdn.com/v4/letter/u/3be4f8/32.png) [@user19](https://forum.convai.com/u/user19)\
**Post date:** [July 17, 2025, 7:57am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/1 "2025-07-17T07:57:56Z")

</div>

I am encountering a NullReferenceException error where client is null during public async Task StartRecordAudio. (“hi” is printed in console once microphone is pressed). None of the code imported has been modified.

 ![Image 17-7-2025 at 2.42 PM](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/0/0039de8d96699d652949f91df6303223fea2fc42.jpeg)  
 ![Image 17-7-2025 at 2.43 PM](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/3/3c0b29fa8876b8fccebb552489953525939b10e0.jpeg)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [July 17, 2025, 8:27am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/2 "2025-07-17T08:27:45Z")

</div>

Hello @user19,

Why did you disable the player?

---

<div class="post-metadata">

**Author:** ![user19](https://avatars.discourse-cdn.com/v4/letter/u/3be4f8/32.png) [@user19](https://forum.convai.com/u/user19)\
**Post date:** [July 17, 2025, 8:36am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/3 "2025-07-17T08:36:50Z")

</div>

I disabled the player because I already had another camera in the scene, I attached the scripts to my original camera.

 ![Screenshot 2025-07-17 at 4.36.00 PM](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/4/4491eab50cbe9a8d383a989a0a9da585a04f11c7.jpeg)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [July 17, 2025, 8:51am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/4 "2025-07-17T08:51:23Z")

</div>

Please do not edit anything and test with the default installation and check if it works.

---

<div class="post-metadata">

**Author:** ![user19](https://avatars.discourse-cdn.com/v4/letter/u/3be4f8/32.png) [@user19](https://forum.convai.com/u/user19)\
**Post date:** [July 18, 2025, 2:32am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/5 "2025-07-18T02:32:00Z")

</div>

I’ve opened an entirely new project with only the default installation + the Convai AR and iOS build packages, everything in the project is from Convai. However I still encountered these errors in Xcode. I’ve noticed that there is no ios folder in Assets/Convai/Plugins/gRPC/Grpc.Core/runtimes even after downloading the iOS build package. Also do I have to change anything in the settings for the Grpc.csharp.ext assets or do I leave them as they are after downloading everything.?

 ![Screenshot 2025-07-18 at 10.29.24 AM](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/6/6071ad9549570a3a9cd54629b87bcb2f8d601078.png)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [July 18, 2025, 2:49am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/6 "2025-07-18T02:49:14Z")

</div>

How do you install the iOS Package?

---

<div class="post-metadata">

**Author:** ![user19](https://avatars.discourse-cdn.com/v4/letter/u/3be4f8/32.png) [@user19](https://forum.convai.com/u/user19)\
**Post date:** [July 18, 2025, 2:57am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/7 "2025-07-18T02:57:01Z")

</div>

I installed it automatically from the Custom Packages folder, following all steps written in this documentation except for step 3.

> **[Building for iOS/iPadOS | Convai Documentation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/building-for-supported-platforms/building-for-ios-ipados)**
>
> This guide will walk you through the process of installing Convai-powered Unity applications on iOS and iPadOS devices.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [July 22, 2025, 10:13am UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/8 "2025-07-22T10:13:17Z")

</div>

I am unable to reproduce this problem. Could you please share a screenshot of this folder?

`Assets\Convai\Plugins\gRPC\Grpc.Core\runtimes`

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/e60ef96aa7334c5ccf6682f6c6dbc20fcfa96b49.png) [@system](https://forum.convai.com/u/system)\
**Post date:** [September 3, 2025, 1:20pm UTC](https://forum.convai.com/t/unity-error-nullreferenceexception/4624/9 "2025-09-03T13:20:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
