This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 254845
Collapse All | Expand All

(-)a/openide.filesystems/src/org/openide/filesystems/FileUtil.java (+5 lines)
Lines 821-826 Link Here
821
        File retVal = (File) fo.getAttribute("java.io.File"); // NOI18N;        
821
        File retVal = (File) fo.getAttribute("java.io.File"); // NOI18N;        
822
822
823
        if (retVal == null) {
823
        if (retVal == null) {
824
            try {
825
                if (fo.getFileSystem() instanceof JarFileSystem) return null;
826
            } catch (FileStateInvalidException ex) {
827
                return null;
828
            }
824
            URL fileURL = URLMapper.findURL(fo, URLMapper.INTERNAL);
829
            URL fileURL = URLMapper.findURL(fo, URLMapper.INTERNAL);
825
            if (fileURL == null || !"file".equals(fileURL.getProtocol())) {  //NOI18N
830
            if (fileURL == null || !"file".equals(fileURL.getProtocol())) {  //NOI18N
826
                fileURL = URLMapper.findURL(fo, URLMapper.EXTERNAL);
831
                fileURL = URLMapper.findURL(fo, URLMapper.EXTERNAL);

Return to bug 254845