# Cannot set property "isAlphaPremultiplied" of null

**URL:** <https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682>\
**Category:** Phaser 3\
**Created:** [January 19, 2021, 9:01am UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682 "2021-01-19T09:01:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![salmanjaved5050Tinta](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/salmanjaved5050tinta/32/4660_2.png) [@salmanjaved5050Tinta](https://phaser.discourse.group/u/salmanjaved5050Tinta)\
**Post date:** [January 19, 2021, 9:01am UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/1 "2021-01-19T09:01:14Z")

</div>

Hi guys! I’m working on a project where I have a map scene which has a number of texts and images (like a mini-map in games) and gets populated depending upon the data I pass onto this scene. I am restarting this scene a lot and populate the map with the data I provide. Sometimes the scene disappears and this exception occurs. I have no idea why it is occurring and I’ve been trying to solve this issue for quite some time. Any help would be much appreciated. Thanks.

 ![Screenshot 2021-01-18 at 3.14.34 PM](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/e/e0b87a36b02f006a7de4f8d9bf8f8e63d253cfe3.jpeg)

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 20, 2021, 9:23pm UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/2 "2021-01-20T21:23:24Z")

</div>

👋

Which Phaser version? And what is on _map.js:232_?

---

<div class="post-metadata">

**Author:** ![salmanjaved5050Tinta](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/salmanjaved5050tinta/32/4660_2.png) [@salmanjaved5050Tinta](https://phaser.discourse.group/u/salmanjaved5050Tinta)\
**Post date:** [January 20, 2021, 9:39pm UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/3 "2021-01-20T21:39:31Z")

</div>

Hi Samme! I’m using 3.24.1 and here is a screen shot. I’m actually creating a container on ‘pointerover’ event of an image and destroy this container in the ‘pointerout’ as you can see in the image below. The error originates from the text game object.

![Capture](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/e/e6e5a78c4b13957f797841f1167b53147bf2bd26.png)

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 20, 2021, 9:49pm UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/4 "2021-01-20T21:49:35Z")

</div>

So which line of your code is in the error trace?

---

<div class="post-metadata">

**Author:** ![salmanjaved5050Tinta](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/salmanjaved5050tinta/32/4660_2.png) [@salmanjaved5050Tinta](https://phaser.discourse.group/u/salmanjaved5050Tinta)\
**Post date:** [January 20, 2021, 9:55pm UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/5 "2021-01-20T21:55:17Z")

</div>

Line number 232.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 21, 2021, 4:17pm UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/6 "2021-01-21T16:17:04Z")

</div>

And what’s on that line?

---

<div class="post-metadata">

**Author:** ![salmanjaved5050Tinta](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/salmanjaved5050tinta/32/4660_2.png) [@salmanjaved5050Tinta](https://phaser.discourse.group/u/salmanjaved5050Tinta)\
**Post date:** [January 27, 2021, 2:23pm UTC](https://phaser.discourse.group/t/cannot-set-property-isalphapremultiplied-of-null/8682/7 "2021-01-27T14:23:58Z")

</div>

I’m initializing a text object.
