# How to fix dereferencing null/undefined value

**URL:** https://forum.makecode.com/t/how-to-fix-dereferencing-null-undefined-value/37258
**Category:** Forum Feedback
**Created:** [June 11, 2025, 5:21pm UTC](https://forum.makecode.com/t/how-to-fix-dereferencing-null-undefined-value/37258 "2025-06-11T17:21:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Christian](https://forum.makecode.com/u/Christian)
#### Post date: [June 11, 2025, 5:21pm UTC](https://forum.makecode.com/t/how-to-fix-dereferencing-null-undefined-value/37258/1 "2025-06-11T17:21:25Z")

</div>

I’ve been working on a game mainly in python, and it worked until I added an asset that is a song. There is no delete button on the song asset. I tried deleting all of the code and then running it, it still gave me the error. Here’s the link to the project if it helps: [https://arcade.makecode.com/S31070-10053-43406-23846](https://arcade.makecode.com/S31070-10053-43406-23846)

Also line 122 has nothing to do with createSong.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/e/ee5bc2a6ca2940012eac22b302e7f08f74873207.png)
