Error if attempting to load a null URI in NativeHTTPRequest
This commit is contained in:
@@ -112,6 +112,13 @@ class NativeHTTPRequest {
|
|||||||
|
|
||||||
private function doWork_loadURL (uri:String, binary:Bool):Void {
|
private function doWork_loadURL (uri:String, binary:Bool):Void {
|
||||||
|
|
||||||
|
if (uri == null) {
|
||||||
|
|
||||||
|
threadPool.sendError ({ instance: this, promise: promise, error: "The URI must not be null" });
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
bytes = Bytes.alloc (0);
|
bytes = Bytes.alloc (0);
|
||||||
|
|
||||||
bytesLoaded = 0;
|
bytesLoaded = 0;
|
||||||
@@ -496,4 +503,4 @@ class NativeHTTPRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user