polish
This commit is contained in:
parent
ec04357580
commit
3450c5de0b
|
|
@ -45,7 +45,8 @@ class MappingContextHolder {
|
|||
* Is the source being mapped or has already been mapped?
|
||||
*/
|
||||
public static boolean contains(Object source) {
|
||||
return getContext().contains(source);
|
||||
Stack<Object> context = getContext();
|
||||
return context != null ? context.contains(source) : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue