上記のエラーが発生します。次のドキュメントが null かどうかを確認する方法はありますか? 以下は私のコードです:
var vec:NotesView = database.getView("QueryNotes");
var queryColl:NotesDocumentCollection = vec.getAllDocumentsByKey(ProjectUNID,true);
if(queryColl.getCount() > 0){
var queryDoc1:NotesDocument = queryColl.getFirstDocument();
while (queryDoc1 != null) {
if(!queryDoc1.hasItem("QueryEndDate")){
queryDoc1.appendItemValue("QueryEndDate", session.createDateTime(@Now()));
var tmpdoc = vec.getNextDocument(queryDoc1); //error when next is null, or does not exist
queryDoc1.recycle();
queryDoc1 = tmpdoc;
}
}
}
確認する方法があるはずです.stackoverflowに関する同様の質問は質問に答えませんでした.
お返事をお待ちしております。