@mluban added null check on error message