[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I check for empty or null string with ValueBuilder?


You can try with simple and the null safe operator and invoke the
isEmpty method on String type


On Fri, Jun 15, 2018 at 4:12 PM, Steve973 <steve973@xxxxxxxxx> wrote:
> If I have a choice block, and if I want to examine an exchange property
> with is supposed to be set as a String, how can I check if it's empty or
> null?  I can check for empty with exchangeProperty(PROPERTY_NAME).isNull(),
> but how can I add the check for an empty string too?

Claus Ibsen
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2