http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1375 *** shadow/1375 Wed Apr 18 11:28:49 2001 --- shadow/1375.tmp.20755 Wed Apr 18 11:28:49 2001 *************** *** 0 **** --- 1,23 ---- + +============================================================================+ + | beginOffset and endOffset are throwing NullPointerExceptions | + +----------------------------------------------------------------------------+ + | Bug #: 1375 Product: ORO | + | Status: NEW Version: 2.0.2 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: | + | Priority: Medium Component: Main | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Perl5Util.beginOffset(0)and Perl5Util.endOffset(0) throw NullPointerExceptions + with the following regex's. These functions should return -1 on failure and the + documentation doesn't mention that they throw NullPointerExceptions. + + "/[a-zA-Z]{3,10} [0-9]{1,2}\\, [0-9]{2,4}/",//April 1, 2001 + "/[0-9]{1,2}-[0-9]{1,2}-[0-9]{2,4}/",//04-01-2001 + "/[0-9]{1,2}\\/[0-9]{1,2}\\/[0-9]{2,4}/"//04/01/2001
