Fixed possible crash in ChunkRequestTask

This commit is contained in:
Dylan K. Taylor 2019-04-18 17:45:14 +01:00
parent 5913d5038b
commit a4c7ec077b

View File

@ -61,7 +61,9 @@ class ChunkRequestTask extends AsyncTask{
public function onError() : void{
$hook = $this->fetchLocal()["errorHook"];
$hook();
if($hook !== null){
$hook();
}
}
public function onCompletion() : void{