IDEMPIERE-3916 - prevent NPE

This commit is contained in:
Carlos Ruiz 2019-03-21 16:57:50 -03:00
parent de7a612c81
commit 5cbcbcd6ab
1 changed files with 4 additions and 2 deletions

View File

@ -1005,8 +1005,10 @@ public class MoveClient extends SvrProcess {
|| ("M_CostType".equalsIgnoreCase(tableName) && "Name".equalsIgnoreCase(columnName))
|| ("R_RequestProcessor".equalsIgnoreCase(tableName) && "Name".equalsIgnoreCase(columnName))
) {
String value = parameters[i].toString();
parameters[i] = value.replaceFirst(oldClientValue, p_ClientValue);
if (parameters[i] != null) {
String value = parameters[i].toString();
parameters[i] = value.replaceFirst(oldClientValue, p_ClientValue);
}
}
}
}