Be robust against empty 'GEO' field
commitea0948b24e76a2a4c6c10067990c2b4bdb9df4c8
authorArnout Engelen <arnouten@localhost.(none)>
Wed, 10 Feb 2010 19:20:42 +0000 (10 20:20 +0100)
committerArnout Engelen <arnouten@localhost.(none)>
Wed, 10 Feb 2010 19:20:42 +0000 (10 20:20 +0100)
tree9c1633780d44cc61817e8b616b97a85a077a942d
parent751125dffe664572fd9dfb60d128566dd9301506
Be robust against empty 'GEO' field

Last.fm feeds sometimes produce empty 'GEO' fields. This patch removes the
NumberFormatException/ParserException in this case, and replaces it with an
error at validation time.

Also adds a unittest directory for calendars that are invalid, and thus should
fail validation, but would be desirable to be 'supported' (i.e.: not throw a
ParserException) anyway.
etc/samples/invalid/supported/lastfm.ics [new file with mode: 0644]
source/net/fortuna/ical4j/model/property/Geo.java
test/net/fortuna/ical4j/data/CalendarBuilderTest.java