abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject [PATCH] Check for null input streams (was Re: Getting started with Abdera)
Date Wed, 28 Jun 2006 02:32:08 GMT
On 6/27/06, James M Snell <jasnell@gmail.com> wrote:
>
>
> Garrett Rooney wrote:
> >[snip]
> > That kind of error tends to result from passing a null stream to
> > parse().  When you say that the path to simple.xml was "valid", do you
> > mean you gave it a full system path, like:
> >
>
> Yep. I've seen this on several occasions and it always happens on a null
> stream.  We need to add some error checking on that

How about this?

-garrett

[[[
Check for null input streams in the parse() method.

[ in parser/src/main/java/org/apache/abdera/parser/stax ]

* FOMParser.java
  (parse): Throw an IllegalArgumentException if we are passed a null
   InputStream or Reader.
]]]

Mime
View raw message