package pirateboat.multifileHoster;

import org.springframework.stereotype.Service;
import pirateboat.torrent.Torrent;

import java.util.List;

@Service
public class MultifileHosterService {



    public List<Torrent> getCachedStateOfTorrents(List<Torrent> returnResults) {
        return null;
    }
}

package pirateboat.multifileHoster;

import org.springframework.stereotype.Service;
import pirateboat.torrent.Torrent;

import java.util.List;

@Service
public class MultifileHosterService {



    public List<Torrent> getCachedStateOfTorrents(List<Torrent> returnResults) {
        return returnResults;
    }
}

fix NPE