Skip to content

Commit 5fc4972

Browse files
authored
Issue: 75509 (#83)
When a rest procedure with a numeric parameter is called without specifying a value for the parameter a null pointer exception is throws at runtime.
1 parent ca1913e commit 5fc4972

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common/src/main/java/com/genexus/CommonUtil.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,9 @@ else if ( (day == 31) && ((newMth == 3) || (newMth == 5) || (newMth == 8) || (ne
11051105
//Debe ignorar los caracteres invalidos
11061106
public static long lval(String text)
11071107
{
1108+
if (text == null)
1109+
return 0;
1110+
11081111
text = text.trim();
11091112
try
11101113
{
@@ -1154,6 +1157,9 @@ public static double val(String text)
11541157

11551158
public static double val(String text, String sDSep)
11561159
{
1160+
if (text == null)
1161+
return 0;
1162+
11571163
text = text.trim();
11581164

11591165
try

0 commit comments

Comments
 (0)