examples/contacts-example/src/main/java/de/saxsys/mvvmfx/examples/contacts/ui/detail/DetailViewModel.java
private StringBinding emptyStringOnNull(ObservableValue<String> source) {
		return Bindings.createStringBinding(() -> {
			if (source.getValue() == null) {
				return "";
			} else {
				return source.getValue();
			}
		}, source);
	}
private StringBinding emptyStringOnNull(ObservableValue<String> source) {
		return Bindings.createStringBinding(() -> {
			if (source.getValue() == null) {
				return "";
			} else {
				return source.getValue();
			}
		}, source);
	}
private StringBinding emptyStringOnNull ( ObservableValue < String > source ) { return Bindings . createStringBinding ( ( ) -> { if ( source . getValue ( ) == null ) { return "" ; } else { return source . getValue ( ) ; } } , source ) ; }
When the given source binding has a value of <code>null</code> an empty
string is used for the returned binding. Otherwise the value of the
source binding is used.
When the given source binding has a value of <code > null< / code > an empty string is used for the returned binding . Otherwise the value of the source binding is used .