bug 17859

Added null checking


git-svn-id: svn://10.0.0.236/trunk@52993 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
idk%eng.sun.com
1999-11-09 10:42:36 +00:00
parent 51254cf0e7
commit f49b0b03e5

View File

@@ -104,7 +104,8 @@ JNIEXPORT jobject JNICALL Java_org_mozilla_pluglet_mozilla_PlugletPeerImpl_newSt
JNIEXPORT void JNICALL Java_org_mozilla_pluglet_mozilla_PlugletPeerImpl_showStatus
(JNIEnv *env, jobject jthis, jstring _msg) {
nsIPluginInstancePeer * instancePeer = (nsIPluginInstancePeer*)env->GetLongField(jthis, peerFID);
if (!instancePeer) {
if (!instancePeer
|| !_msg) {
return;
}
const char *msg = NULL;