SOLR-3098: additional check for existing elements

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1300003 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-03-13 08:29:05 +00:00
parent 3710c95e96
commit 993908d5d5
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ sammy.get
var elements = analysis_data[type][i+1];
var elements_count = global_elements_count;
if( !elements[0].positionHistory )
if( !elements[0] || !elements[0].positionHistory )
{
colspan = elements_count;
elements_count = 1;