Changeset 83ccfb45


Ignore:
Timestamp:
Jun 13, 2014 1:38:30 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2a269ff
Parents:
e968828
Message:
  • i2psnark: Fix NPE when fetching invalid torrent (ticket #1307)
File:
1 edited

Legend:

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

    re968828 r83ccfb45  
    179179                _mgr.copyAndAddTorrent(file, canonical);
    180180                snark = _mgr.getTorrentByBaseName(originalName);
    181                 snark.startTorrent();
     181                if (snark != null)
     182                    snark.startTorrent();
     183                else
     184                    throw new IOException("Unknown error - check logs");
    182185            }
    183186        } catch (IOException ioe) {
Note: See TracChangeset for help on using the changeset viewer.