Operador ternario e inesperada NullPointerException

Estoy obteniendoNullPointerException de la línea de abajo a veces.

System.out.println("Date::"+ row != null ? row.getLegMaturityDate() : "null");

Después de agregar corchetes, está bien.

System.out.println("Date::"+ (row != null ? row.getLegMaturityDate() : "null"));

Por favor aclararme el comportamiento. Gracias por adelantado

Respuestas a la pregunta(2)

Su respuesta a la pregunta