if ( a != null && a.b != null && a.b .c != null ) d = a .b.c .doit();
else d = null;