From 004f9be4c9775bc8081c898710f1cbda60c2a57e Mon Sep 17 00:00:00 2001 From: Twig N Date: Fri, 3 Apr 2020 20:53:55 +1100 Subject: [PATCH] fix crash on TorrentDetails activity --- .../main/java/org/transdroid/daemon/TorrentDetails.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/transdroid/daemon/TorrentDetails.java b/app/src/main/java/org/transdroid/daemon/TorrentDetails.java index 45a02899..b2223cf0 100644 --- a/app/src/main/java/org/transdroid/daemon/TorrentDetails.java +++ b/app/src/main/java/org/transdroid/daemon/TorrentDetails.java @@ -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 { public TorrentDetails(List trackers, List errors) { this.trackers = trackers; this.errors = errors; - this.pieces = null; + this.pieces = new ArrayList<>(); } public TorrentDetails(List trackers, List errors, List pieces) {