Skip to content

Commit 1a49bec

Browse files
authored
fix(ai-monitoring): Null pointer for AI-related issues (#70773)
https://sentry.sentry.io/issues/5336783230/?referrer=github-pr-bot
1 parent d2019f4 commit 1a49bec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/app/views/issueDetails/groupEventDetails/groupEventDetailsContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ function DefaultGroupEventDetailsContent({
143143
?.filter((x): x is EntryException => x.type === EntryType.EXCEPTION)
144144
.flatMap(x => x.data.values ?? [])
145145
.some(({value}) => {
146-
const lowerText = value.toLowerCase();
146+
const lowerText = value?.toLowerCase();
147147
return (
148+
lowerText &&
148149
(lowerText.includes('api key') || lowerText.includes('429')) &&
149150
(lowerText.includes('openai') ||
150151
lowerText.includes('anthropic') ||

0 commit comments

Comments
 (0)