Skip to content

Commit

Permalink
NPE on File System Compare
Browse files Browse the repository at this point in the history
---
 Signed-off-by: Peter Kriens <[email protected]>

Signed-off-by: Peter Kriens <[email protected]>
  • Loading branch information
pkriens committed Jan 23, 2024
1 parent bc9ecf9 commit cac01f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.eclipse.core.filesystem.provider.FileStore;
import org.eclipse.core.filesystem.provider.FileSystem;
import org.eclipse.core.internal.filesystem.NullFileStore;
import org.eclipse.core.internal.filesystem.NullFileSystem;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
Expand Down Expand Up @@ -54,7 +55,8 @@
*/
public class JarFileSystem extends FileSystem {
private static final ILogger logger = Logger.getLogger(JarFileSystem.class);

@SuppressWarnings("unused")
private static final NullFileSystem INIT = new NullFileSystem();
private static final String SCHEME_JARF = "jarf";
private final ConcurrentMap<IFileStore, Reference<JarRootNode>> roots = new ConcurrentHashMap<>();

Expand Down Expand Up @@ -98,6 +100,7 @@ public String[] childNames(int options, IProgressMonitor monitor) throws CoreExc

@Override
public IFileStore getChild(String name) {
new NullFileSystem();
return new NullFileStore(new Path(getPath()).append(name));
}

Expand Down

0 comments on commit cac01f0

Please sign in to comment.