Commit 3dba618
authored
fix: handle empty string message values in CloudPubSubSinkTask (#431)
Treat empty string ("") payloads as equivalent to null when no attributes are present. Previously, only null values were checked, allowing empty messages to pass through and potentially stall processing.
Updated the condition to use attributes.isEmpty() and include value.isEmpty() alongside the null check to ensure invalid messages are consistently skipped.1 parent e1dd4e1 commit 3dba618
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments