Skip to content
Snippets Groups Projects
Commit 68026217 authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[UWS] Fix some constructors of UWSServer where the local variable for logger

(possibly NULL) was used instead of the class variable (which is NEVER NULL).
parent 668f7ebe
Branches
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ import uws.service.wait.BlockingPolicy; ...@@ -139,7 +139,7 @@ import uws.service.wait.BlockingPolicy;
* </p> * </p>
* *
* @author Gr&eacute;gory Mantelet (CDS;ARI) * @author Gr&eacute;gory Mantelet (CDS;ARI)
* @version 4.3 (11/2017) * @version 4.4 (08/2018)
*/ */
public class UWSService implements UWS { public class UWSService implements UWS {
...@@ -337,7 +337,7 @@ public class UWSService implements UWS { ...@@ -337,7 +337,7 @@ public class UWSService implements UWS {
name = urlInterpreter.getUWSName(); name = urlInterpreter.getUWSName();
// Log the successful initialization: // Log the successful initialization:
logger.logUWS(LogLevel.INFO, this, "INIT", "UWS successfully initialized!", null); this.logger.logUWS(LogLevel.INFO, this, "INIT", "UWS successfully initialized!", null);
}catch(NullPointerException ex){ }catch(NullPointerException ex){
// Log the exception: // Log the exception:
...@@ -380,7 +380,7 @@ public class UWSService implements UWS { ...@@ -380,7 +380,7 @@ public class UWSService implements UWS {
this(jobFactory, fileManager, logger); this(jobFactory, fileManager, logger);
setUrlInterpreter(urlInterpreter); setUrlInterpreter(urlInterpreter);
if (this.urlInterpreter != null) if (this.urlInterpreter != null)
logger.logUWS(LogLevel.INFO, this, "INIT", "UWS successfully initialized.", null); this.logger.logUWS(LogLevel.INFO, this, "INIT", "UWS successfully initialized.", null);
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment