From 5cbcbcd6abbe2351bd362ecc1508daab2521217a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 21 Mar 2019 16:57:50 -0300 Subject: [PATCH] IDEMPIERE-3916 - prevent NPE --- .../src/org/idempiere/process/MoveClient.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/idempiere/process/MoveClient.java b/org.adempiere.base/src/org/idempiere/process/MoveClient.java index c508e885a7..5d03f87d3e 100644 --- a/org.adempiere.base/src/org/idempiere/process/MoveClient.java +++ b/org.adempiere.base/src/org/idempiere/process/MoveClient.java @@ -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); + } } } }