theIDTable->Put(&key, method);
if (theIDTable) theIDTable->Put(key, method);
    static jmethodID JNICALL GetMethodID(JNIEnv *env, jclass clazz, const char *name, const char *sig)    {        nsISecureEnv* secureEnv = GetSecureEnv(env);        jmethodID outMethodID = NULL;        nsresult result = secureEnv->GetMethodID(clazz, name, sig, &outMethodID);        if (result == NS_OK && outMethodID != NULL) {            nsVoidKey key(outMethodID);            JNIMethod* method = (JNIMethod*) theIDTable->Get(&key);            if (method == NULL) {                method = new JNIMethod(name, sig, outMethodID);                theIDTable->Put(&key, method);            }            outMethodID = jmethodID(method);        }        return outMethodID;    }