|
From: <eli...@us...> - 2007-03-09 14:28:54
|
Revision: 2748
http://svn.sourceforge.net/java-game-lib/?rev=2748&view=rev
Author: elias_naur
Date: 2007-03-09 06:28:52 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
Added error checking to NewStringNative
Modified Paths:
--------------
trunk/LWJGL/src/native/common/common_tools.c
Modified: trunk/LWJGL/src/native/common/common_tools.c
===================================================================
--- trunk/LWJGL/src/native/common/common_tools.c 2007-03-06 14:48:35 UTC (rev 2747)
+++ trunk/LWJGL/src/native/common/common_tools.c 2007-03-09 14:28:52 UTC (rev 2748)
@@ -210,7 +210,11 @@
}
jcls_str = (*env)->FindClass(env,"java/lang/String");
+ if (jcls_str == NULL)
+ return NULL;
jmethod_str = (*env)->GetMethodID(env,jcls_str, "<init>", "([B)V");
+ if (jmethod_str == NULL)
+ return NULL;
bytes = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|