# Cannot read property 'shift' of null

**URL:** <https://discourse.codecombat.com/t/cannot-read-property-shift-of-null/3089>\
**Category:** Uncategorized\
**Created:** [March 14, 2015, 3:16pm UTC](https://discourse.codecombat.com/t/cannot-read-property-shift-of-null/3089 "2015-03-14T15:16:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImDev](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@ImDev](https://discourse.codecombat.com/u/ImDev)\
**Post date:** [March 14, 2015, 3:16pm UTC](https://discourse.codecombat.com/t/cannot-read-property-shift-of-null/3089/1 "2015-03-14T15:16:32Z")

</div>

Currently I’m solving Sarven Treasure. Sometimes the level stops working somewhere in the middle with the following error:

Uncaught TypeError: Cannot read property ‘shift’ of null Angel.coffee:145  
e.exports.e.finishBeholdingWorld world.coffee:536  
module.exports.World.finishDeserializingworld.coffee:523  
module.exports.World.deserializeSomeFrameslodash.js:5519  
(anonymous function)

After reloading the level I got the following ambiguous message:  
 ![](https://sea2.discourse-cdn.com/flex016/uploads/codecombat/2176/510bd01a2c0eee70.png)  
Console log says that “world ended in won at frame…”, while Infinite loop detector still thinks that the code is invalid.

So it is possible that these two problems are connected somehow.

@nick, I can send you the script, if it helps you to clarify the problem.

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nick/32/784_2.png) [@nick](https://discourse.codecombat.com/u/nick)\
**Post date:** [March 14, 2015, 5:09pm UTC](https://discourse.codecombat.com/t/cannot-read-property-shift-of-null/3089/2 "2015-03-14T17:09:36Z")

</div>

Hmm, haven’t seen that one before. Please send me the script in a private message and I’ll check it out!
