Skip to content

Commit

Permalink
Fixing broken search type 2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Apr 12, 2017
1 parent d9fa8d8 commit e470662
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private DocV2 findApps(DocV2 doc) {
if (doc.getChildCount() > 0 && doc.getChild(0).getBackendId() == 3 && doc.getChild(0).getDocType() == 1) {
return doc;
}
if (doc.getChild(0).getChildCount() == 1) {
if (doc.getChildCount() > 0 && doc.getChild(0).getChildCount() == 1) {
DocV2 moreResults = findMoreResults(doc);
if (null != moreResults) {
return DocV2.newBuilder(moreResults).addChild(0, doc.getChild(0).getChild(0)).build();
Expand Down

0 comments on commit e470662

Please sign in to comment.