Mercurial Hosting > luan
changeset 1410:dc625408def8
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 Sep 2019 16:58:28 -0600 |
parents | 9103a61e64bc |
children | 8dec6b62a5e4 |
files | src/luan/modules/lucene/LuceneIndex.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java Wed Sep 25 08:09:05 2019 -0600 +++ b/src/luan/modules/lucene/LuceneIndex.java Mon Sep 30 16:58:28 2019 -0600 @@ -675,6 +675,8 @@ doc.add(newField( name, value, indexed, boost )); } else { // list LuanTable list = (LuanTable)value; + if( !list.isList() ) + throw new LuanException("table value for '"+name+"' must be a list"); for( Object el : list.asList() ) { doc.add(newField( name, el, indexed, boost )); }