diff --git a/src/main/java/org/ohdsi/webapi/service/converters/SourceRequestToSourceConverter.java b/src/main/java/org/ohdsi/webapi/service/converters/SourceRequestToSourceConverter.java index af4a0d631..3dafe0a68 100644 --- a/src/main/java/org/ohdsi/webapi/service/converters/SourceRequestToSourceConverter.java +++ b/src/main/java/org/ohdsi/webapi/service/converters/SourceRequestToSourceConverter.java @@ -29,7 +29,7 @@ public Source convert(SourceRequest request) { source.setKeyfileName(request.getKeyfileName()); source.setKrbAdminServer(request.getKrbAdminServer()); source.setKrbAuthMethod(KerberosAuthMechanism.getByName(request.getKrbAuthMethod())); - if (null != request.isCheckConnection()) { + if (request.isCheckConnection() != null) { source.setCheckConnection(request.isCheckConnection()); } return source; diff --git a/src/main/java/org/ohdsi/webapi/source/SourceController.java b/src/main/java/org/ohdsi/webapi/source/SourceController.java index 9a2b24d94..ee32d2f4d 100644 --- a/src/main/java/org/ohdsi/webapi/source/SourceController.java +++ b/src/main/java/org/ohdsi/webapi/source/SourceController.java @@ -238,7 +238,7 @@ public SourceInfo updateSource(@PathParam("sourceId") Integer sourceId, @FormDat } setKeyfileData(updated, source, file); transformIfRequired(updated); - if (null == request.isCheckConnection()) { + if (request.isCheckConnection() == null) { updated.setCheckConnection(source.isCheckConnection()); } updated.setModifiedBy(getCurrentUser());