Martin Sladecek martin.sladecek at
Fri Apr 5 07:03:32 PDT 2013

You can use ObjectProperty<Long> instead of LongProperty to get nullable 
properties. The default value is 0. But I agree, it should be clarified 
in the docs.


On 04/05/2013 03:24 PM, Scott Palmer wrote:
> I just noticed this:
> 04-05 07:42:52 INFO beans [JavaFX Application Thread]: Attempt to set long
> property to null, using default value instead.
> java.lang.NullPointerException
>          at
>          at
> ..which kind of sucks because I wanted a nullable property, but anyway
> that's not what I wanted to bring up here.
> It mentions "using default value instead" but I just looked over the docs
> and I can't find a reference to the idea of a "default value".  I haven't
> checked yet, but I assume either the value remains unchanged when set to
> null or it is set to zero.   In either case the docs should probably
> clarify this.
> Scott

More information about the openjfx-dev mailing list