Do not create empty dex files

This commit is contained in:
Lanchon 2017-09-23 22:50:55 -03:00
parent 9b0b2dddeb
commit d5bb069748

View File

@ -85,6 +85,7 @@ public class DexIO {
for (int i = 0; i < threadCount; i++) {
final BatchedIterator<ClassDef> batchedIterator =
new BatchedIterator<>(classIterator, lock, PER_THREAD_BATCH_SIZE);
if (i != 0 && !batchedIterator.hasNext()) break;
callables.add(new Callable<Void>() {
@Override
public Void call() throws IOException {