I am getting NullPointerException from the below line sometimes.
NullPointerException
System.out.println(\"Date::\"+ row != null ? row.getLegMaturityDate() : \"null
"Date::" + row is never null, although row sometimes is.
"Date::" + row
row
That is, "Date::"+ row != null is equivalent to ("Date::"+ row) != null which is always true.
"Date::"+ row != null
("Date::"+ row) != null