DarkflameServer/dChatServer
David Markowitz a5e46e2844
Chat: Fix possible nullptr access (#1238)
Fixes a possible nullptr access.  This is the only call to GetPlayerData where we do not check the result for some reason, so this PR adds in the check and a resulting log line.

Code compiles, unsure how to reproduce the issue, however here is the crash dump I used to deduce this being the possible issue

```

Error: signal 11:
[00] CatchUnhandled(int)(+0x316) [0x561469100336]
[01] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f65e8e45520]
[02] /DarkflameServer/build/ChatServer(+0x32719) [0x5614690fa719]
[03] HandlePacket(Packet*)(+0x2a0) [0x5614690fcfb0]
[04] /DarkflameServer/build/ChatServer(main+0x92e) [0x5614690fb75e]
[05] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f65e8e2cd90]
[06] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f65e8e2ce40]
[07] /DarkflameServer/build/ChatServer(_start+0x25) [0x5614690fc375]
```
2023-10-24 02:26:55 -07:00
..
ChatPacketHandler.cpp Chat: Fix possible nullptr access (#1238) 2023-10-24 02:26:55 -07:00
ChatPacketHandler.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
ChatServer.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
CMakeLists.txt Implement GTest and change windows output path 2022-11-07 00:12:35 -08:00
PlayerContainer.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
PlayerContainer.h Teams: Default team loot to ffa (#1224) 2023-10-18 09:18:22 -05:00