Open ntraut opened 2 years ago
Looking at the code in atlasmakerServer.js
, the new entry in me.US
is created in the method _connectNewUser
but the property User
is set in the method declareAutocompleteClient
, so until the websocket message "autocompleteClient"
is sent brainbox can crash because of the undefined property User
.
@r03ert0 can you check that?
Thank you for your feedback.
Please tag your issue as a feature request or a bug report using the labels on the right.
Current behaviour
Not sure exactly how this happens but brainbox often crashes at this line: https://github.com/neuroanatomy/BrainBox/blob/3cf9417c339cadd03ba7671412664e90bddfab9f/controller/atlasmakerServer/atlasmakerServer.js#L1132
traceback:
we could think that it happens when
me.getUserFromUserId(data.uid)
returns null but it should not be the case because we would have the following error:Uncaught TypeError: Cannot read property 'User' of null
so it must be when
getUserFromUserId
returns an object without aUser
propertyExpected behaviour
brainbox would handle the problem and not crash
Version information (for bug reports)
current