Made error nullable