From eaf6064064032b0919628c18af5778d7f7307f87 Mon Sep 17 00:00:00 2001
From: Niremizov <Niremizov@1275810.no-reply.drupal.org>
Date: Fri, 3 Oct 2014 01:33:17 -0700
Subject: [PATCH] Issue #2349245 by Niremizov: Fixed error on importing empty
 csv file with no headers.

---
 plugins/FeedsCSVParser.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc
index 1f879d38..0dada59d 100644
--- a/plugins/FeedsCSVParser.inc
+++ b/plugins/FeedsCSVParser.inc
@@ -28,7 +28,7 @@ class FeedsCSVParser extends FeedsParser {
       // Get first line and use it for column names, convert them to lower case.
       $header = $this->parseHeader($parser, $iterator);
       if (!$header) {
-        return;
+        return FeedsParserResult();
       }
       $parser->setColumnNames($header);
     }
-- 
GitLab