# BUGS: another ONE?

**URL:** <https://forum.cloverdx.com/t/bugs-another-one/43>\
**Category:** CloverDX Platform\
**Created:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/bugs-another-one/43 "2007-07-16T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/bugs-another-one/43/1 "2007-07-16T00:00:00Z")

</div>

check the method  
public Object visit(CLVFTrimNode node, Object data)  
from FilterExpParserExecutor class  
what will happen if I try a filter with trim(“”) ???  
this method throws exception because of start and end indexes are not dependent  
end becames -1 and then  
stack.push(seq.subSequence(start,end)); is executed with 0 and -1…  
what about trim(" ") ?  
then start becomes \> than end which also results in exception.  
Simplest solution:  
for ciklus for the end comes first  
then this two lines:  
end++;  
length = end;  
and then for ciklus for the start

I spend hours trying to find mistake in my usage of filters and trim but in the end I think this is your BEGINERS mistake  
Looking forward for a solution in cvs  
Thanks

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/bugs-another-one/43/2 "2007-07-16T08:23:44Z")

</div>

You find real bug, thanks for report this issue, bugfix is available in CVS.

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/bugs-another-one/43/3 "2007-07-16T08:23:45Z")

</div>

Thank you too for the fast reply…  
You saved my life 😉
