mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-09 20:01:08 +00:00
Add check for null pointer
Fix up d657c872433aea21a2762880599e9dbee40db9a0.
This commit is contained in:
parent
0b58fadc83
commit
3104291734
@ -1941,7 +1941,7 @@ bool Session::addTorrent_impl(CreateTorrentParams params, const MagnetUri &magne
|
||||
p = lt::read_resume_data(fastresumeData, ec);
|
||||
|
||||
// load from .torrent file when fastresume doesn't contain the required `info` dict
|
||||
if (!p.ti->is_valid())
|
||||
if (!p.ti || !p.ti->is_valid())
|
||||
p.ti = torrentInfo.nativeInfo();
|
||||
|
||||
// libtorrent will always apply `file_priorities` to torrents,
|
||||
|
Loading…
x
Reference in New Issue
Block a user