Commit f49085ab authored by npedot's avatar npedot
Browse files

fix table col by name return null if not found

parent 04a3e6ad
......@@ -58,7 +58,7 @@ class Table (): Labelled {
}
fun colByName(colName:String):Column? {
return columns?.filter { c-> c.name==colName }?.first()
return columns?.filter { c-> c.name==colName }?.firstOrNull()
}
infix fun id(id: String ) = apply {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment