This means that the FindByPID method doesn't return anything, i.e. the oldRow variable is a NULL reference.
You should make sure that the FindByPID method does what you expect it to do and that you have a corresponding row with the PID = "123456" in the database.