To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=68261 Issue #|68261 Summary|XEnumeration.nextElement() throws despite hasMoreEleme |nts()==true Component|Word processor Version|OOo 2.0.3 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|programming Assigned to|mru Reported by|mux2005
------- Additional comments from [EMAIL PROTECTED] Tue Aug 8 08:45:01 -0700 2006 ------- The attached document demonstrates a case of XEnumeration.nextElement() throwing NoSuchElementException even if a prior test of hasMoreElements() has returned true. The contained macro has the usual loop xEnum = range2.createEnumeration() do while xEnum.hasMoreElements() xEnum.nextElement() loop but despite the document being completely static the nextElement() call always throws. I've tested this under Windows 2000 and Linux with both StarBasic and Java (Actually this is a simplified testcase that I extracted from our production Java code). Reproducibility is ALWAYS. So it's NOT a case of some structures disappearing between the call to hasMoreElements() and nextElement(). Background info: The document has been imported from Word and then modified in OOo. I've noticed that form fields imported from Word seem to be different from those created in OOo. Maybe that has something to do with it. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]