We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bf0e4 commit 8a335b3Copy full SHA for 8a335b3
1 file changed
test-app/runtime/src/main/cpp/runtime/com_tns_Runtime.cpp
@@ -64,15 +64,15 @@ Runtime* TryGetRuntime(int runtimeId) {
64
try {
65
runtime = Runtime::GetRuntime(runtimeId);
66
} catch (NativeScriptException& e) {
67
- e.ReThrowToJava(runtime->GetNapiEnv());
+ e.ReThrowToJava(nullptr);
68
} catch (std::exception e) {
69
stringstream ss;
70
ss << "Error: c++ exception: " << e.what() << endl;
71
NativeScriptException nsEx(ss.str());
72
- nsEx.ReThrowToJava(runtime->GetNapiEnv());
+ nsEx.ReThrowToJava(nullptr);
73
} catch (...) {
74
NativeScriptException nsEx(std::string("Error: c++ exception!"));
75
76
}
77
return runtime;
78
0 commit comments