diff --git a/convex-gui/src/main/java/convex/gui/dlfs/FileList.java b/convex-gui/src/main/java/convex/gui/dlfs/FileList.java index 4924ce560..d7af6ec4f 100644 --- a/convex-gui/src/main/java/convex/gui/dlfs/FileList.java +++ b/convex-gui/src/main/java/convex/gui/dlfs/FileList.java @@ -30,7 +30,7 @@ public FileContextMenu() { try { Path p=getSelectedPath(); System.out.println("Deleting:"+ p); - Files.delete(p); + if (p!=null) Files.delete(p); refreshList(); } catch (IOException e) { Toast.display(null, "Can't delete file!", Color.ORANGE);