commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r937239 - /commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c
Date Fri, 23 Apr 2010 10:40:05 GMT
Author: mturk
Date: Fri Apr 23 10:40:05 2010
New Revision: 937239

URL: http://svn.apache.org/viewvc?rev=937239&view=rev
Log:
Fix DAEMON-159 by creating String[] with 0 length

Modified:
    commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c

Modified: commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c?rev=937239&r1=937238&r2=937239&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c (original)
+++ commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c Fri Apr 23 10:40:05 2010
@@ -629,10 +629,10 @@ apxJavaLoadMainClass(APXHANDLE hJava, LP
         return FALSE;
     }
     nArgs = apxMultiSzToArrayW(hJava->hPool, lpArguments, &lpArgs);
+    lpJava->clWorker.jArgs = JNICALL_3(NewObjectArray, nArgs,
+                                       lpJava->clString.jClazz, NULL);
     if (nArgs) {
         DWORD i;
-        lpJava->clWorker.jArgs = JNICALL_3(NewObjectArray, nArgs,
-                                           lpJava->clString.jClazz, NULL);
         for (i = 0; i < nArgs; i++) {
             jstring arg = JNICALL_2(NewString, lpArgs[i], lstrlenW(lpArgs[i]));
             JNICALL_3(SetObjectArrayElement, lpJava->clWorker.jArgs, i, arg);



Mime
View raw message