IDEMPIERE-3439 IDEMPIERE-3936 - foreign constraints - fix NPE
This commit is contained in:
parent
ed6a4133e0
commit
429d0d47b3
|
@ -809,12 +809,15 @@ public class MColumn extends X_AD_Column
|
|||
foreignTable = "AD_Chart";
|
||||
}
|
||||
|
||||
if (foreignTable.equals("AD_AllClients_V"))
|
||||
foreignTable = "AD_Client";
|
||||
else if (foreignTable.equals("AD_AllUsers_V"))
|
||||
foreignTable = "AD_User";
|
||||
else if (foreignTable.equals("AD_AllRoles_V"))
|
||||
foreignTable = "AD_Role";
|
||||
if (foreignTable != null) {
|
||||
if (foreignTable.equals("AD_AllClients_V")) {
|
||||
foreignTable = "AD_Client";
|
||||
} else if (foreignTable.equals("AD_AllUsers_V")) {
|
||||
foreignTable = "AD_User";
|
||||
} else if (foreignTable.equals("AD_AllRoles_V")) {
|
||||
foreignTable = "AD_Role";
|
||||
}
|
||||
}
|
||||
|
||||
return foreignTable;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue