NumberFormatException in FriendFeed

Description

I was trying to parse this feed:
http://friendfeed.com/eszpee?auth=D9E8KDvRDZd1wYj6&format=atom

and it resulted in a NumberFormatException in the method parseLink in
Atom10Parser.java

I found the error with rome 0.9, below is a stack trace from my logfile. Later I
confirmed the error with rome 1.0RC1.

In the 1.0RC1 source, changing line 239 of Atom10Parser.java to this:

if ((att!=null)&&(att!="")) {

solved the problem.

-------------------------------------------------------------

NumberFormatException
Class: java.lang.NumberFormatException
For input string: ""
Error in method forInputString of java.lang.NumberFormatException at line -1 in null
Error in method parseLong of java.lang.Long at line -1 in null
Error in method parseLong of java.lang.Long at line -1 in null
Error in method parseLink of com.sun.syndication.io.impl.Atom10Parser at line
220 in Atom10Parser.java
Error in method parseAlternateLinks of com.sun.syndication.io.impl.Atom10Parser
at line 230 in Atom10Parser.java
Error in method parseEntry of com.sun.syndication.io.impl.Atom10Parser at line
341 in Atom10Parser.java
Error in method parseEntries of com.sun.syndication.io.impl.Atom10Parser at line
319 in Atom10Parser.java
Error in method parseFeed of com.sun.syndication.io.impl.Atom10Parser at line
181 in Atom10Parser.java
Error in method parse of com.sun.syndication.io.impl.Atom10Parser at line 75 in
Atom10Parser.java
Error in method build of com.sun.syndication.io.WireFeedInput at line 252 in
WireFeedInput.java
Error in method build of com.sun.syndication.io.WireFeedInput at line 179 in
WireFeedInput.java
Error in method build of com.sun.syndication.io.SyndFeedInput at line 122 in
SyndFeedInput.java

Environment

None

Status

Assignee

ROME Jira Lead

Reporter

syntaxerror

Labels

None

Participants

None

Fix versions

Affects versions

current

Priority

Major