Changeset 945988d


Ignore:
Timestamp:
Nov 5, 2014 4:39:54 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
893d1bb
Parents:
6269866
Message:

i2psnark: Fix NPE when deleting torrent if the data directory
was deleted out from under us (ticket #1407)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r6269866 r945988d  
    10401040                            // step 2 delete dirs bottom-up
    10411041                            Set<File> dirs = storage.getDirectories();
     1042                            if (dirs == null)
     1043                                break;  // directory deleted out from under us
    10421044                            if (_log.shouldLog(Log.INFO))
    10431045                                _log.info("Dirs to delete: " + DataHelper.toString(dirs));
Note: See TracChangeset for help on using the changeset viewer.