Summary: In case the java object has been GCed during layout calculation we will crash if we try to call a method on the now invalid weak pointer. Use fbjni weak_ref to skip calling to java when the java object does not exist any more. Reviewed By: lexs Differential Revision: D4251133 fbshipit-source-id: 2d8949252b31447ce54bc16a35cb25fabe72230b