Issue #144 has been updated by Clément Oudot.

Status changed from Assigned to Closed
% Done changed from 0 to 100

Done in r98
----------------------------------------
Bug #144: Error if CSV file is empty,
http://tools.lsc-project.org/issues/144

Author: Clément Oudot
Status: Closed
Priority: Normal
Assigned to: Clément Oudot
Category: LDAP Scripts
Target version: ldap-scripts-0.4


If CSV file is empty or contains only headers,  we have:

<pre>
Can't call method "get_value" on an undefined value at file2ldif.pl line 292.
</pre>

The quick fix is:

<pre>
@@ -223,6 +226,7 @@
 # Parse LDIF
 while( not $inldif->eof() ) {
     my $entry = $inldif->read_entry();
+    next unless $entry;
     if ( $inldif->error() ) {
         print STDERR "Error msg: ", $inldif->error (), "\n";
         print STDERR "Error lines:\n", $inldif->error_lines (), "\n";
</pre>

To apply...


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to