Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit cc3efdd

Browse files
Сидоченко Виктор ВикторовичСидоченко Виктор Викторович
authored andcommitted
Add comment by pr request
1 parent 3d01b00 commit cc3efdd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

datajack-api/src/main/java/ru/sbtqa/tag/datajack/providers/AbstractDataProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ private Object parseArray(BasicDBObject basicO, String key) throws DataException
211211
String arrayKey = key.split("\\[")[0];
212212
String arrayIndex = key.split("\\[")[1].split("\\]")[0];
213213

214+
// If object passed by key is a reference to array, extract reference and replace current context by it
214215
if (basicO.get(arrayKey) instanceof BasicDBObject && isReference((BasicDBObject) basicO.get(arrayKey))) {
215216
basicO = ((AbstractDataProvider) get(arrayKey)).basicObject;
216217
arrayKey = basicO.keySet().iterator().next();

0 commit comments

Comments
 (0)