Commit 2a46dc7
src: check empty before accessing string
Fix an assertion when running dotnev tests with GN build:
assertion !empty() failed: string::front(): string is empty
which was caused by calling value.front() without verifying the value is
not empty.
PR-URL: #51665
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>1 parent ba444a9 commit 2a46dc7Copy full SHA for 2a46dc7
File tree
Expand file treeCollapse file tree
1 file changed
+4
-4
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+4
-4
lines changedOpen diff view settings
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
116 | 116 | |
117 | 117 | |
118 | 118 | |
119 | | - |
120 | | - |
121 | | - |
| 119 | + |
| 120 | + |
| 121 | + |
122 | 122 | |
123 | | - |
| 123 | + |
124 | 124 | |
125 | 125 | |
126 | 126 | |
|
0 commit comments