You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2025/04/07 18:01:31 UTC
(pekko-connectors) branch main updated: Fix ClassCastException
This is an automated email from the ASF dual-hosted git repository.
mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git
The following commit(s) were added to refs/heads/main by this push:
new f71104a46 Fix ClassCastException
f71104a46 is described below
commit f71104a46b40630c44f6ea90e5b0fe7df9d16341
Author: Matthew de Detrich <md...@gmail.com>
AuthorDate: Mon Apr 7 17:45:08 2025 +0200
Fix ClassCastException
---
.../pekko/stream/connectors/googlecloud/storage/StorageObject.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/google-cloud-storage/src/main/scala/org/apache/pekko/stream/connectors/googlecloud/storage/StorageObject.scala b/google-cloud-storage/src/main/scala/org/apache/pekko/stream/connectors/googlecloud/storage/StorageObject.scala
index 985603da0..97474d52f 100644
--- a/google-cloud-storage/src/main/scala/org/apache/pekko/stream/connectors/googlecloud/storage/StorageObject.scala
+++ b/google-cloud-storage/src/main/scala/org/apache/pekko/stream/connectors/googlecloud/storage/StorageObject.scala
@@ -455,7 +455,7 @@ object StorageObject {
bucket,
generation,
contentType.asInstanceOf[ContentType],
- contentType.asInstanceOf[Option[ContentType]],
+ Option(contentType).map(_.asInstanceOf[ContentType]),
size,
etag,
md5Hash,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org