Author: doogie
Date: Thu May 3 21:13:33 2012
New Revision: 1333623
URL:
http://svn.apache.org/viewvc?rev=1333623&view=revLog:
OPTIMIZE: s/encHex/encValue/, this is a more accurate variable name.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=1333623&r1=1333622&r2=1333623&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Thu May 3 21:13:33 2012
@@ -2644,10 +2644,10 @@ public class GenericDelegator implements
keyName = modelView.getAliasedEntity(modelView.getAlias(field.getName()).getEntityAlias(), modelReader).getEntityName();
}
- String encHex = (String) entity.get(field.getName());
- if (UtilValidate.isNotEmpty(encHex)) {
+ String encValue = (String) entity.get(field.getName());
+ if (UtilValidate.isNotEmpty(encValue)) {
try {
- entity.dangerousSetNoCheckButFast(field, crypto.decrypt(keyName, encHex));
+ entity.dangerousSetNoCheckButFast(field, crypto.decrypt(keyName, encValue));
} catch (EntityCryptoException e) {
// not fatal -- allow returning of the encrypted value
Debug.logWarning(e, "Problem decrypting field [" + entityName + " / " + field.getName() + "]", module);