Issue #2009: Fix NullPointerException in SocketServer start up.

Change-Id: I07683ba74410234d162e058df0bb3ff6e00ee59e

Former-commit-id: b2b6220d5b5ef2235edb57fe2ab2ce0cb234ee25
This commit is contained in:
David Gillingham 2013-07-23 13:44:46 -05:00
parent fa8d032583
commit a711fea3d9

View file

@ -40,7 +40,8 @@ import java.util.regex.Pattern;
* Date Ticket# Engineer Description * Date Ticket# Engineer Description
* ------------ ---------- ----------- -------------------------- * ------------ ---------- ----------- --------------------------
* ??? ?? ???? bphillip Initial creation * ??? ?? ???? bphillip Initial creation
* Jul 15, 2013 #2099 dgilling Code cleanup. * Jul 15, 2013 #2009 dgilling Code cleanup.
* Jul 23, 2013 #2009 dgilling Fix NullPointerException on start up.
* *
* </pre> * </pre>
* *
@ -146,8 +147,11 @@ public class SocketSrv {
} }
public void run() throws IOException { public void run() throws IOException {
Runnable rsyncJob = new RsyncThread(serverProps); if (rsyncThread != null) {
rsyncThread.scheduleWithFixedDelay(rsyncJob, 1, 1, TimeUnit.SECONDS); Runnable rsyncJob = new RsyncThread(serverProps);
rsyncThread
.scheduleWithFixedDelay(rsyncJob, 1, 1, TimeUnit.SECONDS);
}
ServerSocket socket = new ServerSocket(serverPort); ServerSocket socket = new ServerSocket(serverPort);
while (!mhsRequestHandler.isShutdown()) { while (!mhsRequestHandler.isShutdown()) {