mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
20114
added null checking
This commit is contained in:
parent
9d73ef65cc
commit
8f05b00e04
@ -40,6 +40,9 @@ JNIEXPORT jobject JNICALL Java_org_mozilla_pluglet_mozilla_PlugletTagInfo2Impl_g
|
||||
*/
|
||||
JNIEXPORT jstring JNICALL Java_org_mozilla_pluglet_mozilla_PlugletTagInfo2Impl_getAttribute
|
||||
(JNIEnv *env, jobject jthis, jstring _name) {
|
||||
if (!_name) {
|
||||
return NULL;
|
||||
}
|
||||
nsIPluginTagInfo2 * info = (nsIPluginTagInfo2*)env->GetLongField(jthis, peerFID);
|
||||
const char * name = NULL;
|
||||
if (!(name = env->GetStringUTFChars(_name,NULL))) {
|
||||
|
Loading…
Reference in New Issue
Block a user