Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
10.2.1.6
-
None
Description
NetworkServerControlImpl has some constructs like this one:
if (logWriter != null)
{
synchronized(logWriter)
}
Since logWriter might be set to null after the test for logWriter!=null and before synchronized(logWriter), one might get a NullPointerException. It would be safer to write this instead:
PrintWriter lw = logWriter;
if (lw != null) {
synchronized (lw)
}