Cannot read property 'logaction' of null

Game development with Board Game Arena Studio
Post Reply
User avatar
Yanhoch
Posts: 5
Joined: 05 February 2018, 03:11

Cannot read property 'logaction' of null

Post by Yanhoch »

Hello,

When transiting from one state to another, I'm getting this error on the client side:
  • Uncaught TypeError: Cannot read property 'logaction' of null
I'm logging ALL my JS functions and here's what I see :
  • Entering function A
  • Exiting function A
  • Leaving state: X
  • onUpdateActionButtons: Y
  • Entering state: Y
  • Entering function B
  • Exiting function B
Now here, I should be seeing:
  • Leaving state: Y
And I'm getting the above error without entering in any of the function define in th JS file of my game.

On the server side everyting is fine and I see nothing wrong, no error, nothing.

Any idea what I can do with this, because I have no idea how to fugure out what is happening?

Here's the complete trace:

Code: Select all

Uncaught TypeError: Cannot read property 'logaction' of null
    at Object.onPlaceLogOnChannel (ly_studio.js:2)
    at Object.onPlaceLogOnChannel (dojo.js:8)
    at Object.dispatchNotification (ly_studio.js:2)
    at Object.dispatchNotifications (ly_studio.js:2)
    at Object.onSynchronousNotificationEnd (ly_studio.js:2)
    at _254.<anonymous> (dojo.js:8)
    at _254._269 [as onnotifEnd] (dojo.js:8)
    at Function.on.emit (dojo.js:8)
    at Function.on.emit (dojo.js:8)
    at _254.emit (dojo.js:8)
onPlaceLogOnChannel @ ly_studio.js:2
(anonymous) @ dojo.js:8
dispatchNotification @ ly_studio.js:2
dispatchNotifications @ ly_studio.js:2
onSynchronousNotificationEnd @ ly_studio.js:2
(anonymous) @ dojo.js:8
_269 @ dojo.js:8
on.emit @ dojo.js:8
on.emit @ dojo.js:8
emit @ dojo.js:8
publish @ dojo.js:8
publish @ dojo.js:8
endnotif @ ly_studio.js:2
(anonymous) @ VM533:1
setTimeout (async)
dispatchNotification @ ly_studio.js:2
dispatchNotifications @ ly_studio.js:2
onNotification @ ly_studio.js:2
(anonymous) @ dojo.js:8
r.emit @ socket.io.js:6
r.onevent @ socket.io.js:8
r.onpacket @ socket.io.js:8
(anonymous) @ socket.io.js:8
r.emit @ socket.io.js:6
r.ondecoded @ socket.io.js:6
(anonymous) @ socket.io.js:8
r.emit @ socket.io.js:6
a.add @ socket.io.js:6
r.ondata @ socket.io.js:6
(anonymous) @ socket.io.js:8
r.emit @ socket.io.js:6
r.onPacket @ socket.io.js:7
(anonymous) @ socket.io.js:7
r.emit @ socket.io.js:6
r.onPacket @ socket.io.js:7
r.onData @ socket.io.js:7
ws.onmessage @ socket.io.js:8
Thank you !
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Cannot read property 'logaction' of null

Post by Victoria_La »

You probably missing args parameter of notification or passing null. It has to empty array if not used
User avatar
Yanhoch
Posts: 5
Joined: 05 February 2018, 03:11

Re: Cannot read property 'logaction' of null

Post by Yanhoch »

Hello Victoria_La,

You are absolutly right : I was passing null in a 'notifyAllPlayers' and didn't test that when I did it a while ago !

I'm not sure I would have found this one without your help!

Thank you very much ! / Merci infiniement (J'ai le l'impression que tu parles français...) !
Post Reply

Return to “Developers”