Skip to content

Commit

Permalink
use IllegalArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
gubatron committed Mar 2, 2015
1 parent 40930d1 commit 3b25703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/frostwire/jlibtorrent/TorrentInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public TorrentInfo(byte[] bencodedBytes) {
lazy_entry.bdecode(Vectors.bytes2char_vector(bencodedBytes), lentry, ec);

if (ec.value() != 0) {
this.ti = null;
throw new IllegalArgumentException(ec.message());
} else {
this.ti = new torrent_info(lentry);
Expand Down

0 comments on commit 3b25703

Please sign in to comment.