Skip to content

Commit 86f6d8b

Browse files
committed
fix(android): handle undefined stack in convertToNativeStacktrace
1 parent 5381272 commit 86f6d8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nssentry.android.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export namespace NSSentry {
107107
in_app?: boolean;
108108
}[]
109109
) {
110+
if (!stack) {
111+
return null;
112+
}
110113
const nStackTrace = new io.sentry.protocol.SentryStackTrace();
111114
const frames = new java.util.ArrayList<io.sentry.protocol.SentryStackFrame>();
112115
for (let i = 0; i < stack.length; i++) {

0 commit comments

Comments
 (0)