xuhuia1a / zipeg

Automatically exported from code.google.com/p/zipeg
0 stars 0 forks source link

2.9.0.1177 AssertionError at com.zipeg.ArchiveProcessor.moveToTrash #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
2.9.0.1177 AssertionError at com.zipeg.ArchiveProcessor.moveToTrash

java.lang.AssertionError
ArchiveProcessor.moveToTrash(ArchiveProcessor:1065)
ArchiveProcessor.unzip(ArchiveProcessor:994)

Original issue reported on code.google.com by leo.kuzn...@gmail.com on 17 Oct 2010 at 3:51

GoogleCodeExporter commented 9 years ago
            if (path.startsWith("/")) {
                path = path.substring(1);
            }
>>>         assert path.length() > 0;
--------
Do not even attempt to move "/" to trash :)
TrashBin.java:
            if (path.startsWith("/")) {
                path = path.substring(1);
            }
            if (path.length() == 0) {
                return;
            }

Original comment by leo.kuzn...@gmail.com on 17 Oct 2010 at 3:54