Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make client more robust against inconsistent state
If during message handling we somehow end up in a situation where no ClientUser is registered or g.uiSession is not set we end up with pSelf as a null pointer. Dereferncing that crashes the application. Similar to other objects we retrieve for message processing this patch modified the macro to log and bail if we encounter this situation instead of crashing. One drawback of this patch is that it might make state corruption caused by client bugs less visible to us because we no longer receive crash reports on them while the client functionality could still be degraded severly.
- Loading branch information