[osmosis-dev] [PATCH] Fix NullPointerExceptions for malformed or missing plugin.xml files

Igor Podolskiy igor.podolskiy at vwi-stuttgart.de
Wed Jun 22 14:54:21 BST 2011


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.

Bye
Igor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-malformed-jpf-plugin-npe.patch
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110622/9a98f11f/attachment.ksh>


More information about the osmosis-dev mailing list