I have used Maputils.IsEmpty() method.I use apache.commons.collections framework class.
if (MapUtils.isEmpty(abcdMap)) {
//steps to execute
}
return new arraylist<>(abcdmap.values());
gets null pointer exception in return line. When did debug in the eclipse, I could see some field values in variables tab as below.(havnt mentioned all the internal fields) entryset : hashmap$entrySet(id) , keyset:null, values:null,
How can we handle this nullpointerexception ?
Can you suggest some other way of checking null condition for Maps.Thanks in Advance!!