[osmosis-dev] [PATCH] Fix NullPointerExceptions for malformed or missing plugin.xml files
Brett Henderson
brett at bretth.com
Mon Jul 4 13:07:47 BST 2011
On Wed, Jun 22, 2011 at 11:54 PM, Igor Podolskiy <
igor.podolskiy at vwi-stuttgart.de> wrote:
> Hi,
>
> if a JPF plugin is missing a plugin.xml file, the JPF runtime returns null
> as a plugin location. This special case is not handled by the TaskRegistrar
> which passes the null location to the PluginLoader which in turn crashes
> with an inconclusive NPE (see for example this post [1]).
>
> The attached patch filters null locations and emits a warning if a null
> location is encountered. The patch applies to current trunk.
>
To be honest I don't understand the JPF code very well, so if you think it
fixes the issue and you have access to SVN then go ahead.
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110704/34d4c377/attachment.html>
More information about the osmosis-dev
mailing list