If first person has proof through dated notebooks, schematics, or internal documents they would likely be fine. However, second person may still have valid patent to assert elsewhere if there was never anything qualifying as public disclosure by first entity. Particularly under current doctrine.