error when names are empty

Signed-off-by: Grarak <williye97@gmail.com>