Skip to content

Commit

Permalink
cdk: handle null messages in ConnectorExceptionUtil (#39220)
Browse files Browse the repository at this point in the history
  • Loading branch information
theyueli authored Jun 6, 2024
1 parent 23b7e01 commit fd679fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions airbyte-cdk/java/airbyte-cdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ corresponds to that version.

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 0.36.7 | 2024-06-06 | [\#39220](https://github.com/airbytehq/airbyte/pull/39220) | Handle null messages in ConnectorExceptionUtil |
| 0.36.6 | 2024-06-05 | [\#39106](https://github.com/airbytehq/airbyte/pull/39106) | Skip write to storage with 0 byte file |
| 0.36.5 | 2024-06-01 | [\#38792](https://github.com/airbytehq/airbyte/pull/38792) | Throw config exception if no selectable table exists in user provided schemas |
| 0.36.4 | 2024-05-31 | [\#38824](https://github.com/airbytehq/airbyte/pull/38824) | Param marked as non-null to nullable in JdbcDestinationHandler for NPE fix |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ object ConnectorExceptionUtil {
e: Throwable?,
errorMessages: Array<String>
): Boolean {
val msg = e?.message!!.lowercase()
val msg: String = e?.message ?: return false
val msgLowerCase = msg.lowercase()
for (errorMessage in errorMessages) {
if (msg.contains(errorMessage)) return true
if (msgLowerCase.contains(errorMessage)) return true
}
return false
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.36.6
version=0.36.7

0 comments on commit fd679fc

Please sign in to comment.