git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1067 a333f486-631f-4898-b8df-5754b55c2be0
@@ -259,6 +259,11 @@ try
//
// Check parameters format/consistency
+ if (strlen($sCSVData) == 0)
+ {
+ throw new ExchangeException("Missing data - at least one line is expected");
+ }
+
if (!MetaModel::IsValidClass($sClass))
{
throw new BulkLoadException("Unknown class: '$sClass'");