Error when enable the Export Model Validator

http://sourceforge.net/tracker/?func=detail&aid=2847797&group_id=176962&atid=879332
Add warning message if configured wrongly
This commit is contained in:
Carlos Ruiz 2009-08-31 22:14:26 +00:00
parent ed24fd0980
commit 06e74c473c
1 changed files with 2 additions and 1 deletions

View File

@ -87,13 +87,14 @@ public class ExportModelValidator implements ModelValidator
*/ */
public void initialize (ModelValidationEngine engine, MClient client) public void initialize (ModelValidationEngine engine, MClient client)
{ {
if(client !=null) if (client != null)
{ {
m_AD_Client_ID = client.getAD_Client_ID(); m_AD_Client_ID = client.getAD_Client_ID();
log.info(client.toString()); log.info(client.toString());
} }
else else
{ {
log.warning("Export Model Validator cannot be used as a global validator, it needs to be defined in a per-client (tenant) basis");
return; return;
} }