Exception in thread "main" java.lang.NullPointerException:
Cannot invoke "String.toLowerCase()" because the return value of
"com.baeldung.java14.npe.HelpfulNullPointerException$PersonalDetails.getEmailAddress()" is null
at com.baeldung.java14.npe.HelpfulNullPointerException.main(HelpfulNullPointerException.java:10)
I haven't written any Java since Java 6. This makes me so happy to hear.
What about XML, and XML based configs? Is the Java ecosystem still obsessed with XML?
I remember I was once trying to learn Hibernate. After finding what I thought looked like the best tutorial, I skimmed through it and there was literally no Java code in the tutorial about a Java library! It was all XML! I never could understand it, but this was early in my career, maybe I could handle it now, maybe not.
Exception in thread "main" java.lang.NullPointerException:
Cannot invoke "String.toLowerCase()" because the return value of
"com.baeldung.java14.npe.HelpfulNullPointerException$PersonalDetails.getEmailAddress()" is null
at com.baeldung.java14.npe.HelpfulNullPointerException.main(HelpfulNullPointerException.java:10)
Holy shit in so glad it's not just me. All I have ever seen from Java seems to be NullPointerException.
(Which makes sense, but still, it's pretty funny)
With Rust it's usually just a fluke that can be fixed by doing that, but C++ linker errors may indicate the start of several frustrating hours. That's been my experience at least.
Okay, but genuinely in what cases the borrow checker caused issues for you? Cause I use Rust for a few years now and have not yet encountered the infamous fight with the borrow checker.
Also, there's a "new" and "better" borrow checker coming in 2024 edition.