[FIX] NPE в BatchProfileByUsernameRequest (#424)

This commit is contained in:
KR33PY 2020-12-01 15:44:16 +03:00 committed by GitHub
parent c24b74ab91
commit acf2d2d9cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ public final class BatchProfileByUsernameRequest extends Request<BatchProfileByU
public BatchProfileByUsernameRequest(String... usernames) throws IOException {
this.list = new Entry[usernames.length];
for (int i = 0; i < usernames.length; ++i) {
this.list[i] = new Entry();
this.list[i].client = "";
this.list[i].username = usernames[i];
}