Hi,
Lachlan Deck wrote:
[...]
Boolean value;
value = rec.campsiteFri();
if (value != null && value.booleanValue()) {
...
}
Don't forget to test for nulls. Otherwise the next exception you get
will be a NullPointerException.
Or you can even avoid this null pointer test with this:
if(Boolean.TRUE.equals(value)) {
...
}
Kind regards,
--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]