I have custom gridview adapter in the getview method I am checking String for NULL or Empty, but the condition does not seem to work as it prints string "null" to the textview below is the code
if(!ThisAttendee.AllocatedTable.equals(null) && ThisAttendee.AllocatedTable.toLowerCase().trim() != "null" && !ThisAttendee.AllocatedTable.trim().isEmpty())
{
((TextView)(gridviewitem.findViewById(R.id.tv_attendeetable))).setText("Table: "+ThisAttendee.AllocatedTable);
}