Skip to content

Commit 2d5188a

Browse files
gordomiumkamilogorek
authored andcommitted
fix(utils/object): fix normalizing error from null (getsentry#2305)
1 parent 796fe36 commit 2d5188a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function serializeValue(value: any): any {
211211
*/
212212
// tslint:disable-next-line:cyclomatic-complexity
213213
function normalizeValue<T>(value: T, key?: any): T | string {
214-
if (key === 'domain' && typeof value === 'object' && ((value as unknown) as { _events: any })._events) {
214+
if (key === 'domain' && value && typeof value === 'object' && ((value as unknown) as { _events: any })._events) {
215215
return '[Domain]';
216216
}
217217

0 commit comments

Comments
 (0)