Skip to content

Commit d8d4157

Browse files
j5ik2oclaude
andcommitted
fix: Initialize _containerId with None to prevent NullPointerException
Fixed uninitialized var _containerId which was causing NullPointerException in Scala 3 environment. The variable is now properly initialized with None. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0d12db6 commit d8d4157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-controller-scala-core/src/main/scala/com/github/j5ik2o/dockerController/DockerController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private[dockerController] class DockerControllerImpl(
9090

9191
protected val logger: Logger = LoggerFactory.getLogger(getClass)
9292

93-
private var _containerId: Option[String] = _
93+
private var _containerId: Option[String] = None
9494

9595
private def repoTag: String = tag.fold(imageName)(t => s"$imageName:$t")
9696

0 commit comments

Comments
 (0)