Skip to content

Commit

Permalink
Changed to isEmpty after null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dukbong committed Apr 16, 2024
1 parent 67d3b18 commit fad45e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private void linkToParents(ResultSet rs, ResultMapping parentMapping, Object row
CacheKey parentKey = createKeyForMultipleResults(rs, parentMapping, parentMapping.getColumn(),
parentMapping.getForeignColumn());
List<PendingRelation> parents = pendingRelations.get(parentKey);
if (!parents.isEmpty()) {
if (parents != null && !parents.isEmpty()) {
for (PendingRelation parent : parents) {
if (parent != null && rowValue != null) {
linkObjects(parent.metaObject, parent.propertyMapping, rowValue);
Expand Down

0 comments on commit fad45e2

Please sign in to comment.