In any devise of real or personal property set forth in a will, the giving to one person of an indeterminate or other interest in the property or an estate in fee therein or absolute ownership thereof, together with a power, absolute or otherwise, to dispose of the property, shall not be construed to render void a limitation over of the property to another person which is to take effect in the event that the first named devisee shall not have disposed of the property during his lifetime. In all those cases, the testator's intent shall be given effect.
N.J.S. § 3B:3-40