[ 1755849 ] Add AD_ModelValidator

- Fixed global validator initialization sequence.
This commit is contained in:
Heng Sin Low 2007-11-23 06:24:51 +00:00
parent 504aca2f58
commit 01a2c458a2
1 changed files with 3 additions and 2 deletions

View File

@ -151,10 +151,11 @@ public class ModelValidationEngine
*/ */
private void initialize(ModelValidator validator, MClient client) private void initialize(ModelValidator validator, MClient client)
{ {
validator.initialize(this, client);
m_validators.add(validator);
if (client == null) if (client == null)
m_globalValidators.add(validator); m_globalValidators.add(validator);
m_validators.add(validator);
validator.initialize(this, client);
} // initialize } // initialize
/** /**