Symptoms:
When we execute a method ClientComm.isConnected() a NullPointerException (NPE) is thrown.
Cause
After analyzing the existing code, we've detected that this is happening when the client socket is not instantiated properly, and within the code we have the following statement:
clientSocket.isConnected()
clientSocket == null => NPE
Solution
Adding a control in all statements of the class ClientComm in which the object clientSocket is being used in order to validate that it’s instantiated properly, such as:
if(clientSocket != null){
//Do something
}
The correction is available in the version ES1-2016-IPLC-84-mt-comm-0.0.2.