Check value at resplen2 if it is not NULL