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
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -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 {
			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 {
		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