Add NULL check for GError
Indent