handle null values in IsSameObject

This commit is contained in:
Joel Dice 2008-04-01 16:40:53 -06:00
parent 4102c97be3
commit 95a386f2a6

View File

@ -1805,9 +1805,13 @@ GetJavaVM(Thread* t, Machine** m)
jboolean JNICALL
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 {