#1698 FIX for IAE "key can't be empty" in System.getProperty()

That is, assertEquals("${}", PropertyEval.eval("${}"));
... for when we load properties that include the "${}" placeholder
This commit is contained in:
rob bygrave
2019-05-16 20:26:45 +12:00
parent 1d363776ec
commit 3dd5069f5a
2 changed files with 8 additions and 0 deletions
@@ -59,6 +59,9 @@ final class PropertyEval {
*/
private static String evaluateExpression(String exp) {
if (exp.isEmpty()) {
return null;
}
if (isJndiExpression(exp)) {
// JNDI property lookup...
String val = getJndiProperty(exp);