try {
if (files[i].indexOf('.') <= 0) continue;
files[i] = files[i].substring(0, files[i].indexOf('.'));
- int n = Integer.parseInt(files[i]);
- if (n>=uidNext) uidNext = n;
+ try {
+ int n = Integer.parseInt(files[i]);
+ if (n>=uidNext) uidNext = n;
+ } catch (NumberFormatException nfe) { continue; }
} catch(Exception e) { Log.error(this, e); }
}
}