I get for next code
final boolean isOnList = myList.get(l.Id);
error message :
"Unboxing of myList.get(l.Id) may produce NullPointerException".
MyList is :
private Map<String, Boolean> myList = new HashMap<>();
and l is:
ActivityHome.Lists l = myList.get(position);
I have tried all proposed solutions but still get this error. Any suggestion to fix it?