Issue #1910 Fix NPE when statusHandler not in debug
Change-Id: I5bb9c213491e485e3985bd7f4d5035aa2945869b Former-commit-id:b1d9b148ea
[formerlycd1733fd7f
] [formerlyda7a648a61
] [formerlyb1d9b148ea
[formerlycd1733fd7f
] [formerlyda7a648a61
] [formerlyf1d4b5d329
[formerlyda7a648a61
[formerly 18bc074721877b26f04bd3a2d0f784b8e208c25e]]]] Former-commit-id:f1d4b5d329
Former-commit-id:070b5998d0
[formerlyfdcce4ec96
] [formerly 75d8ccc060e39a4248ee4a3bfaa0aeea786c4bac [formerly0184f41374
]] Former-commit-id: 6abf6b969ed95b063da9f1b25ed232505de63734 [formerly8b2ac081a3
] Former-commit-id:6c34fe8ec9
This commit is contained in:
parent
f57b5ca145
commit
b609e4cd01
1 changed files with 7 additions and 6 deletions
|
@ -232,12 +232,13 @@ public class ValidatorImpl implements Validator {
|
|||
// Find any specific validator for this type
|
||||
Validator validator = validatorPlugins
|
||||
.getRegisteredObject(objectType);
|
||||
if (validator == null
|
||||
&& statusHandler.isPriorityEnabled(Priority.DEBUG)) {
|
||||
statusHandler
|
||||
.debug("There is no plugin validator for registry objects with type ["
|
||||
+ objectType
|
||||
+ "]. Only the generic registry object validator will be used...");
|
||||
if (validator == null) {
|
||||
if (statusHandler.isPriorityEnabled(Priority.DEBUG)) {
|
||||
statusHandler
|
||||
.debug("There is no plugin validator for registry objects with type ["
|
||||
+ objectType
|
||||
+ "]. Only the generic registry object validator will be used...");
|
||||
}
|
||||
} else {
|
||||
final ValidateObjectsResponse validateRegistryObjectsResponse = validator
|
||||
.validateObjects(request);
|
||||
|
|
Loading…
Add table
Reference in a new issue