mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
Fix for NPEs if the target directory does not exist.
This commit is contained in:
parent
b3018ad10e
commit
cf6ffc4c60
@ -9,7 +9,7 @@ public class Utils {
|
||||
Vector<String> accounts = new Vector<String>();
|
||||
File folder = new File(Config.FILE_BASE);
|
||||
File[] files = folder.listFiles();
|
||||
for (File f : files) {
|
||||
if (files != null) for (File f : files) {
|
||||
if (f.isDirectory() && f.getName().startsWith("+")) {
|
||||
accounts.add(f.getName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user