Here is the code in question:
if("file".equals(url2.getProtocol())) {
// take into account file links on linux and osx
try {
File file1 = urlToFile(url1);
String path1 = file1.getCanonicalPath();
File file2 = urlToFile(url2);
String path2 = file2.getCanonicalPath();
We need to update it to say:
if("file".equals(url2.getProtocol()) &&
"file".equals(url1.getProtocol())) {
If not it seems that catalog searches fail ...
--
Jody Garnett
On Tuesday, 11 October 2011 at 7:21 PM, Jody Garnett wrote:
> Hey Jesse. I think I saw the final error for the URLUtils work you did.
>
> The code to compare file vs file only checks that url2 is a file; not url1.
> This assumptions showed up as a stack trace and failure when trying to use
> the processing region. I am worried it will effect all map decorators and
> require us to redo the release (sigh).
>
> If you have a moment can you test?
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel