Java 8 - Avoid null pointer exception on object calls

Optional.ofNullable().orElse(new ())).toString();

for example:

Comments

Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted

spring @async causing BeanCurrentlyInCreationException