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";
|
foreignTable = "AD_Chart";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (foreignTable.equals("AD_AllClients_V"))
|
if (foreignTable != null) {
|
||||||
foreignTable = "AD_Client";
|
if (foreignTable.equals("AD_AllClients_V")) {
|
||||||
else if (foreignTable.equals("AD_AllUsers_V"))
|
foreignTable = "AD_Client";
|
||||||
foreignTable = "AD_User";
|
} else if (foreignTable.equals("AD_AllUsers_V")) {
|
||||||
else if (foreignTable.equals("AD_AllRoles_V"))
|
foreignTable = "AD_User";
|
||||||
foreignTable = "AD_Role";
|
} else if (foreignTable.equals("AD_AllRoles_V")) {
|
||||||
|
foreignTable = "AD_Role";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return foreignTable;
|
return foreignTable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue