diff --git a/src/pocketmine/utils/Internet.php b/src/pocketmine/utils/Internet.php index 1f93e2f43..2194399f6 100644 --- a/src/pocketmine/utils/Internet.php +++ b/src/pocketmine/utils/Internet.php @@ -208,6 +208,9 @@ class Internet{ } $ch = curl_init($page); + if($ch === false){ + throw new InternetException("Unable to create new cURL session"); + } curl_setopt_array($ch, $extraOpts + [ CURLOPT_SSL_VERIFYPEER => false,