From: Tara L Andrews Date: Thu, 7 Jun 2012 00:35:45 +0000 (+0200) Subject: fix Lexeme to handle empty wordform list input X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2Fstemmatology.git;a=commitdiff_plain;h=5ac9acd842b39856560430f8268b00364983a017 fix Lexeme to handle empty wordform list input --- diff --git a/lib/Text/Tradition/Collation/Reading/Lexeme.pm b/lib/Text/Tradition/Collation/Reading/Lexeme.pm index 98814e0..b6c7693 100644 --- a/lib/Text/Tradition/Collation/Reading/Lexeme.pm +++ b/lib/Text/Tradition/Collation/Reading/Lexeme.pm @@ -3,6 +3,7 @@ package Text::Tradition::Collation::Reading::Lexeme; use Moose; use JSON (); use Module::Load; +use Text::Tradition::Collation::Reading::WordForm; =head1 NAME @@ -78,6 +79,7 @@ has 'wordform_matchlist' => ( 'matching_form' => 'get', 'add_matching_form' => 'push', }, + default => sub { [] }, ); has 'is_disambiguated' => (