Browse Source

Merge pull request #540 from twig/fix-torrentdetails-crash

fix crash on TorrentDetails activity
pull/551/head
Eric Kok 5 years ago committed by GitHub
parent
commit
b2c8ea7aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      app/src/main/java/org/transdroid/daemon/TorrentDetails.java

8
app/src/main/java/org/transdroid/daemon/TorrentDetails.java

@ -17,12 +17,12 @@ @@ -17,12 +17,12 @@
*/
package org.transdroid.daemon;
import java.util.List;
import java.util.ArrayList;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;
/**
* Represents a torrent's fine details (currently only the trackers).
*
@ -38,7 +38,7 @@ public final class TorrentDetails implements Parcelable { @@ -38,7 +38,7 @@ public final class TorrentDetails implements Parcelable {
public TorrentDetails(List<String> trackers, List<String> errors) {
this.trackers = trackers;
this.errors = errors;
this.pieces = null;
this.pieces = new ArrayList<>();
}
public TorrentDetails(List<String> trackers, List<String> errors, List<Integer> pieces) {

Loading…
Cancel
Save