[DF-2588] fix crash with call Java method