nodebb crashed when openeing chats (chat with deleted user)

Bug Reports
  • Hello,

    nodebb is crashing when i access to the forum with mobile device an open the right sidebar, or desktop browser when opening chats, there is one chat with a deleted user.

    following error:

      30/12 15:08 [21353] - error: TypeError: Cannot read property 'mergeId' of null
    at /var/www/user_3/domain_37/nodebb/src/notifications.js:384:20
    at Array.filter (native)
    at /var/www/user_3/domain_37/nodebb/src/notifications.js:383:25
    at Array.reduce (native)
    at Object.Notifications.merge (/var/www/user_3/domain_37/nodebb/src/notifications.js:345:28)
    at /var/www/user_3/domain_37/nodebb/src/user/notifications.js:96:19
    at fn (/var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:741:34)
    at /var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:1208:16
    at /var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:166:37
    at /var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:701:43
     TypeError: Cannot read property 'mergeId' of null
    at /var/www/user_3/domain_37/nodebb/src/notifications.js:384:20
    at Array.filter (native)
    at /var/www/user_3/domain_37/nodebb/src/notifications.js:383:25
    at Array.reduce (native)
    at Object.Notifications.merge (/var/www/user_3/domain_37/nodebb/src/notifications.js:345:28)
    at /var/www/user_3/domain_37/nodebb/src/user/notifications.js:96:19
    at fn (/var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:741:34)
    at /var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:1208:16
    at /var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:166:37
    at /var/www/user_3/domain_37/nodebb/node_modules/async/lib/async.js:701:43
    30/12 15:08 [21353] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    30/12 15:08 [21353] - info: [app] Database connection closed.
    30/12 15:08 [21353] - info: [app] Web server closed to connections.
    30/12 15:08 [21353] - info: [app] Shutdown complete.
    

    how i can fix this?

  • What git revision are you on? This should be already fixed on master.

  • git version?

    im using nodebb 0.9.3

    there are different versions in 0.9.3?

    I added some user in the chat with empty user, now it seems to work.

    there is no posibilty to delete a whole chat.


Suggested Topics