mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
handle null caller in JVM_GetCallerClass
This commit is contained in:
parent
7b4b43e119
commit
639ef50079
@ -3223,8 +3223,10 @@ EXPORT(JVM_GetCallerClass)(Thread* t, int target)
|
||||
{
|
||||
ENTER(t, Thread::ActiveState);
|
||||
|
||||
return makeLocalReference
|
||||
(t, getJClass(t, methodClass(t, getCaller(t, target))));
|
||||
object method = getCaller(t, target);
|
||||
|
||||
return method ? makeLocalReference
|
||||
(t, getJClass(t, methodClass(t, method))) : 0;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jclass JNICALL
|
||||
|
Loading…
Reference in New Issue
Block a user