Skip to content

Commit b13b482

Browse files
committed
Fix UnitTests
1 parent c6ab6ab commit b13b482

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gxexternalproviders/src/main/java/com/genexus/db/driver/ExternalProviderBase.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public String getEncryptedPropertyValue(String propertyName, String alternativeP
5050
}
5151

5252
public String getEncryptedPropertyValue(String propertyName, String alternativePropertyName, String defaultValue) {
53-
String decryptedValue = null;
54-
String encryptedOrClearTextValue = getPropertyValue(propertyName, alternativePropertyName, defaultValue);
55-
if (encryptedOrClearTextValue != null && encryptedOrClearTextValue.length() > 0) {
53+
String encryptedOrUnEncryptedValue = getPropertyValue(propertyName, alternativePropertyName, defaultValue);
54+
String decryptedValue = encryptedOrUnEncryptedValue;
55+
if (encryptedOrUnEncryptedValue != null && encryptedOrUnEncryptedValue.length() > 0) {
5656
try {
57-
String decryptedTemp = Encryption.decrypt64(encryptedOrClearTextValue);
58-
decryptedValue = (decryptedTemp != null) ? decryptedTemp: encryptedOrClearTextValue;
57+
String decryptedTemp = Encryption.decrypt64(encryptedOrUnEncryptedValue);
58+
decryptedValue = (decryptedTemp != null) ? decryptedTemp: encryptedOrUnEncryptedValue;
5959
}
6060
catch (Exception e) {
6161
logger.warn("Could not decrypt property name: " + resolvePropertyName(propertyName));

0 commit comments

Comments
 (0)