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 583c991 commit 13b2959Copy full SHA for 13b2959
1 file changed
packages/core/src/js/integrations/reactnativeerrorhandlers.ts
@@ -175,7 +175,7 @@ function setupErrorUtilsGlobalHandler(): void {
175
// locations with bundle offsets. Use componentStack as a fallback so
176
// eventFromException can extract frames with source locations.
177
// oxlint-disable-next-line typescript-eslint(no-unsafe-member-access)
178
- if (error.componentStack && (!error.stack || !hasStackFrames(error.stack))) {
+ if (error && error.componentStack && (!error.stack || !hasStackFrames(error.stack))) {
179
180
error.stack = `${error.message || 'Error'}${error.componentStack}`;
181
}
0 commit comments