Null Check in Line Java

String string = bs != null ? f.format(bs) : "";
Talented Tarantula