POJO:
class Item{
String prop1
String prop2
}
My Data:
List<Item> items = new ArrayList(new Item(prop1: 'something'), new Item(prop1: 'something'))
Then I try:
if(items?.prop2){
//I thought prop 2 is present
}
even though the prop2 is null on both items in the items list, above code returns me true and goes inside if statement.
Can someone tell me why?