Fixed problem with method Read.getMatePosition returning null value

Fixed the equality test.