cert = CERT_FindCertByNickname( CERT_GetDefaultCertDB(), nick ); if( cert == NULL ) { JSS_nativeThrow(env, OBJECT_NOT_FOUND_EXCEPTION); goto finish; }
JSS_nativeThrow(env, OBJECT_NOT_FOUND_EXCEPTION); goto finish;
Java_org_mozilla_jss_CryptoManager_findCertByNicknameNative  (JNIEnv *env, jobject this, jstring nickname){    char *nick=NULL;    jobject certObject=NULL;    CERTCertificate *cert=NULL;    PR_ASSERT(env!=NULL && this!=NULL && nickname!=NULL);    nick = (char*) (*env)->GetStringUTFChars(env, nickname, NULL);    PR_ASSERT(nick!=NULL);    cert = PK11_FindCertFromNickname(nick, NULL);    if(cert == NULL) {        cert = CERT_FindCertByNickname( CERT_GetDefaultCertDB(), nick );        if( cert == NULL ) {            JSS_nativeThrow(env, OBJECT_NOT_FOUND_EXCEPTION);            goto finish;        }    }    certObject = JSS_PK11_wrapCert(env, &cert);finish:    if(nick != NULL) {        (*env)->ReleaseStringUTFChars(env, nickname, nick);    }    if(cert != NULL) {        CERT_DestroyCertificate(cert);    }    return certObject;}