From the documentation for the NotesViewEntry
class
If a document is deleted after a ViewEntryCollection containing that document is created, the result of navigating to the deleted document will be a ViewEntry that can be used to navigate to the next entry, but nothing more. All of the properties or methods on this type of ViewEntry, except IsValid, will return an error. If you are sure that none of the documents in a ViewEntryCollection have been deleted, you don't need to check this property; otherwise, it should be checked.
You don't want to check against is nothing
. You want to check if vOrder.isValid()
.