/** Poll the client for a message, add it to the log if not null */ private void getMessageFromClient() { String rec = client.receiveMessage(); if (rec != null) { addMessageToLog(rec); } }