Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread Naftoli Gugenheim
There was one in MappedString, but I think DPP's recent refactoring of common utilities for mapper etc. put it somewhere else (additionally, I assume). - Heiko Seebergerheiko.seeber...@googlemail.com wrote: Hi, I am pretty sure there is a method somewhere

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread David Pollak
a null String to an empty String Hi, I am pretty sure there is a method somewhere converting a null String to an empty String. But I have not found it yet ... Thanks, Heiko Company: weiglewilczek.com Blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift

[Lift] Converting a null String to an empty String

2010-03-09 Thread Heiko Seeberger
Hi, I am pretty sure there is a method somewhere converting a null String to an empty String. But I have not found it yet ... Thanks, Heiko Company: weiglewilczek.com Blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread Heiko Seeberger
On 9 March 2010 16:48, David Pollak feeder.of.the.be...@gmail.com wrote: Can you be a little more specific? Sure ;-) I am looking for a method like this: def stringNullTest(s: String): String = if (s != null) s else Of course I could roll my own, but if it is already around (e.g. in

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 9:30 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 9 March 2010 16:48, David Pollak feeder.of.the.be...@gmail.com wrote: Can you be a little more specific? Sure ;-) I am looking for a method like this: def stringNullTest(s: String): String = if (s !=

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread Timothy Perrett
how about: def stringTest(x: String): String = Box !! x openOr Cheers, Tim On 9 Mar 2010, at 17:30, Heiko Seeberger wrote: On 9 March 2010 16:48, David Pollak feeder.of.the.be...@gmail.com wrote: Can you be a little more specific? Sure ;-) I am looking for a method like this: def