Handling null: optional and nullable types
Java has long been infamous for its NullPointerException. The reason for the NPE is calling a method or accessing an attribute of an object that has not been initialized.
var value = foo.getBar().getBaz().toLowerCase();
Running this snippet may resu...
frankel.hashnode.dev5 min read