The contract of the IndexTupleMapper expects a null to be returned if there isn't an id to be returned?  I haven't looked at the interface yet, but I would make sure there is a javadoc somewhere that spells out that a null could be returned just to make sure that someone doesn't get tripped up with an NPE.  This may be a mute point if there is already an awareness that a null could be returned.