ok, so lets remove the null check 


if (pvm == null)
                          continue;