Skip to content

Commit 40c9a07

Browse files
committed
Fix NPE.
1 parent 1c40d43 commit 40c9a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/scala/org/apache/comet/objectstore/NativeConfig.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object NativeConfig {
5656
* consistent and standardized cloud storage support across all providers.
5757
*/
5858
def extractObjectStoreOptions(hadoopConf: Configuration, uri: URI): Map[String, String] = {
59-
val scheme = uri.getScheme.toLowerCase(Locale.ROOT)
59+
val scheme = Option(uri.getScheme).map(_.toLowerCase(Locale.ROOT)).getOrElse("file")
6060

6161
import scala.jdk.CollectionConverters._
6262
val options = scala.collection.mutable.Map[String, String]()

0 commit comments

Comments
 (0)