branch | RCL_3 |
changeset 25 | ae942d28ec0e |
parent 23 | e5618cc85d74 |
child 26 | 2455ef1f5bbc |
--- a/javaextensions/datagram/datagram/src/nativedatagramconnection.cpp Thu Aug 19 09:48:13 2010 +0300 +++ b/javaextensions/datagram/datagram/src/nativedatagramconnection.cpp Tue Aug 31 15:09:22 2010 +0300 @@ -133,6 +133,7 @@ writeBuffer = new char[requiredNativeBufferLength + 1]; } /* Copy the data to be written from java buffer to the native buffer. */ + if (writeBuffer != NULL) JNIArrayUtils::CopyToNative(aJni, aJavaBuffer, aOffset, requiredNativeBufferLength, writeBuffer);