# NullReferenceException (Shooter 2)

If you encounter a **NullReferenceException** similar to the following after changing a part, preset, color, or bodyshape of your character:

**Error:**\
NullReferenceException (GameCreator.Runtime.Shooter.RigShooterHuman.UpdateFK)

#### Cause

**HeroBridge** works with **Sidekick’s Runtime API**, and under the hood it also relies on **Game Creator 2’s API,** specifically the **Change Model** method.\
Whenever you modify a **part**, **color**, **preset**, or **bodyshape**, HeroBridge triggers a model change using Game Creator’s Change Model method.

However, in **Shooter 2**, changing the character’s model while a weapon is equipped cause the **RigShooterHuman** system to lose its references, resulting in the NullReferenceException error.

{% hint style="info" %}
💡 **Tip:**

A workaround for this issue is to **store the currently equipped weapon and prop** in **local variables** on the character.

Then, use the **On Model Change** trigger to:

1. **Unequip** the weapon and prop.
2. **Wait one frame** (for the model change to complete).
3. **Re-equip** the weapon and prop using the stored local variables.

This ensures that the **Shooter 2 rig** properly reinitializes and restores all references after the model update.
{% endhint %}

A **bug report has been submitted** regarding this issue so it can be addressed in a future update of **Game Creator 2.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fullscreen.no/info/game-creator-2-assets/herobridge/troubleshooting/nullreferenceexception-shooter-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
