Commit 16c14fb7 authored by Lukas Matt's avatar Lukas Matt

Do not panic if entity order is empty

parent 511f3917
......@@ -36,6 +36,10 @@ func FetchEntityOrder(entityXML string) (order string) {
}
}
}
if len(order) <= 0 {
warn("Entity order is empty")
return
}
return order[:len(order)-1] // trim space
}
......
Markdown is supported
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