It is not empty, it contains an empty String.
Seems like Eclipse shows and empty String as an empty value (and not as ""
in Scala REPL) and this is confusing.
Try debugging this, it looks exactly the same.
object A extends Application {
val a = List("")
//any other code here
}
The empty list is Nil
and it looks exactly like productIdsList.tl
in your debug view