Fix bug where index is used incorrectly

This commit is contained in:
Vishan Seru 2019-01-03 23:07:11 +05:30
parent b02ca4ace3
commit 6e8515d3fd
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public class YoutubeSearchQueryHandlerFactory extends SearchQueryHandlerFactory
private List<Byte> convert(@Nonnull byte[] byteArray) {
List<Byte> returnList = new ArrayList<>(byteArray.length);
for (int i = 0; i < byteArray.length; i++) {
returnList.add(i, byteArray[0]);
returnList.add(i, byteArray[i]);
}
return returnList;
}