Closed GoogleCodeExporter closed 9 years ago
https://code.google.com/p/guava-libraries/wiki/UsingAndAvoidingNullExplained#Con
venience_methods
Guava consistently rejects nulls in every API were passing in a null is likely
to represent a bug. It seems as though you are trying to conflate null with
the empty string, which is a serious code smell. The link above suggests
several ways of dealing with that, however.
Original comment by lowas...@google.com
on 18 Oct 2014 at 7:56
I agree with what Louis said.
In your specific case, you probably just want to wrap your CharSequence in a
call to Strings.nullToEmpty(charSeq).
Original comment by kak@google.com
on 18 Oct 2014 at 1:14
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
ross.gol...@gmail.com
on 18 Oct 2014 at 7:47