if ( list.getDetail( ).getContentCount( ) != 0 )
BandDesign detail = list.getDetail( ); if ( detail != null && detail.getContentCount( ) != 0 )
		public Object visitListItem( ListItemDesign list, Object value )		{			BaseQueryDefinition query = prepareVisit( list );			if ( query == null )			{				pushCurrentCondition( true );				handleListingBand( list.getHeader( ), value );				popCurrentCondition( );								pushCurrentCondition( true );				handleListingBand( list.getFooter( ), value );				popCurrentCondition( );			}			else			{				pushReportItemQuery( query );				transformExpressions( list );				pushCurrentCondition( true );				handleListingBand( list.getHeader( ), value );								SlotHandle groupsSlot = ( (ListHandle) list.getHandle( ) )						.getGroups( );				for ( int i = 0; i < list.getGroupCount( ); i++ )				{					handleListingGroup( list.getGroup( i ),							(GroupHandle) groupsSlot.get( i ), value );				}				popCurrentCondition( );				if ( list.getDetail( ).getContentCount( ) != 0 )				{					query.setUsesDetails( true );				}				pushCurrentCondition( false );				handleListingBand( list.getDetail( ), value );				popCurrentCondition( );								pushCurrentCondition( true );				handleListingBand( list.getFooter( ), value );				popCurrentCondition( );				popReportItemQuery( );			}			finishVisit( query );			return value;		}