![Best way to handle NULL / Empty string in Scala | by Ganesh Chandrasekaran | Analytics Vidhya | Medium Best way to handle NULL / Empty string in Scala | by Ganesh Chandrasekaran | Analytics Vidhya | Medium](https://miro.medium.com/v2/resize:fit:1400/1*H2UPjYSoPg_Te9danqmRbw.png)
Best way to handle NULL / Empty string in Scala | by Ganesh Chandrasekaran | Analytics Vidhya | Medium
![runtime error - Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference - Stack Overflow runtime error - Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference - Stack Overflow](https://i.stack.imgur.com/sOePb.png)
runtime error - Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference - Stack Overflow
![String API in Java | #15 | Is a String Empty? | isEmpty() Method of the String Class in java - YouTube String API in Java | #15 | Is a String Empty? | isEmpty() Method of the String Class in java - YouTube](https://i.ytimg.com/vi/KSNx7VZ3tck/maxresdefault.jpg)