Home > Back-end > Based on socket chat bug: null pointer exception
Based on socket chat bug: null pointer exception
Time:09-19
Why am I in the client after the success of the connection will change the contain socke threads in the research, but when I want to receive messages in the chat panel, it can't find change thread, the null pointer errors?
CodePudding user response:
Complete error message
CodePudding user response:
What's the matter with your sender is generated first? And multi-threaded Shared resources you are unlocked, how do you ensure that the data synchronization? Is your st start, how to guarantee the hashMap information has not been modified?