theIDTable->Put(&key, field);
if (theIDTable) theIDTable->Put(key, field);
    static jfieldID JNICALL GetFieldID(JNIEnv *env, jclass clazz, const char *name, const char *sig)    {        nsISecureEnv* secureEnv = GetSecureEnv(env);        jfieldID outFieldID = NULL;        nsresult result = secureEnv->GetFieldID(clazz, name, sig, &outFieldID);        if (result == NS_OK && outFieldID != NULL) {            nsVoidKey key(outFieldID);            JNIField* field = (JNIField*) theIDTable->Get(&key);            if (field == NULL) {                field = new JNIField(name, sig, outFieldID);                theIDTable->Put(&key, field);            }            outFieldID = jfieldID(field);        }        return outFieldID;    }