mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +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);
|
ENTER(t, Thread::ActiveState);
|
||||||
|
|
||||||
return makeLocalReference
|
object method = getCaller(t, target);
|
||||||
(t, getJClass(t, methodClass(t, getCaller(t, target))));
|
|
||||||
|
return method ? makeLocalReference
|
||||||
|
(t, getJClass(t, methodClass(t, method))) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT jclass JNICALL
|
extern "C" JNIEXPORT jclass JNICALL
|
||||||
|
Loading…
Reference in New Issue
Block a user