|
When loading gridshift files through NADCONGridShiftFactory.loadGridShift(URL,URL), there's a nullpointer when the URL is a jar:// URL, rather than a file:// URL. This is caused by statement (line137) String latGridName = DataUtilities.urlToFile(latGridURL).getPath(); as the returned file by DataUtilities is null.
I enclosed a patch for the fix I now implemented. I also added a test for it, but it needs a jar file (stpaul.jar) to be added to src/test/resources
It might be a better idea to more generalize the factory interface to accept inputstreams rather than URLs.
|