mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
handle null values in IsSameObject
This commit is contained in:
parent
4102c97be3
commit
95a386f2a6
@ -1805,9 +1805,13 @@ GetJavaVM(Thread* t, Machine** m)
|
|||||||
jboolean JNICALL
|
jboolean JNICALL
|
||||||
IsSameObject(Thread* t, jobject a, jobject b)
|
IsSameObject(Thread* t, jobject a, jobject b)
|
||||||
{
|
{
|
||||||
ENTER(t, Thread::ActiveState);
|
if (a and b) {
|
||||||
|
ENTER(t, Thread::ActiveState);
|
||||||
|
|
||||||
return *a == *b;
|
return *a == *b;
|
||||||
|
} else {
|
||||||
|
return a == b;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct JDK1_1InitArgs {
|
struct JDK1_1InitArgs {
|
||||||
|
Loading…
Reference in New Issue
Block a user