Commit a7f77479 authored by silver%warwickcompsoc.co.uk's avatar silver%warwickcompsoc.co.uk
Browse files

Bug 332514 - Don't allow null argument to Sandbox constructor. r=brendan sr=jst

parent 01e7cbdb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2268,7 +2268,7 @@ nsXPCComponents_utils_Sandbox::CallOrConstruct(nsIXPConnectWrappedNative *wrappe

        NS_ADDREF(sop);
    } else {
        if (JSVAL_IS_OBJECT(argv[0])) {
        if (!JSVAL_IS_PRIMITIVE(argv[0])) {
            nsCOMPtr<nsIXPConnectWrappedNative> wrapper;
            xpc->GetWrappedNativeOfJSObject(cx, JSVAL_TO_OBJECT(argv[0]),
                                            getter_AddRefs(wrapper));