perform a null check for string in java 8 code example
Example: check if string is null or empty java
if(str != null && !str.isEmpty()) { /* do your stuffs here */ }
if(str != null && !str.isEmpty()) { /* do your stuffs here */ }