fix bug related to logger in context

This commit is contained in:
Grahame Grieve 2021-10-08 07:49:30 +11:00
parent eb750c6bf0
commit 89732b4512
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ public class VersionConvertorContext<T> {
*/
public T getVersionConvertor() {
T result = threadLocalVersionConverter.get();
logger.debug(result.toString());
if (result != null && logger != null) {
logger.debug(result.toString());
}
return result;
}
}