mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Merge pull request #355 from lostdj/patch-1
cp/avian/java-net.cpp: fix segfault
This commit is contained in:
commit
022be0c370
@ -97,6 +97,11 @@ extern "C" JNIEXPORT jint JNICALL
|
||||
jclass,
|
||||
jstring name)
|
||||
{
|
||||
if(!name) {
|
||||
throwNew(e, "java/lang/NullPointerException", 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char* chars = e->GetStringUTFChars(name, 0);
|
||||
if (chars) {
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
|
Loading…
Reference in New Issue
Block a user