Fix loop counter

This commit is contained in:
dragonmacher 2025-05-15 11:55:40 -04:00
parent 717cb2a0ce
commit a9d24753ee

View file

@ -157,7 +157,8 @@ public class DataTypeTreeCopyMoveTask extends Task {
if (n > 1) { if (n > 1) {
message = "Encountered " + n + " errors copying/moving. See the log for details"; message = "Encountered " + n + " errors copying/moving. See the log for details";
for (int i = 0; i < 10; i++) { int max = n < 10 ? n : 10;
for (int i = 0; i < max; i++) {
Msg.error(this, errors.get(i)); Msg.error(this, errors.get(i));
} }
} }