resolving error messages with null errors