koshimizu / google-docs-upload

Automatically exported from code.google.com/p/google-docs-upload
0 stars 0 forks source link

Uploading a directory results in null pointer ex #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Uploading a directory of files and dirs

What is the expected output? What do you see instead?

Uploading the folder /home/dpeng

Exception in thread "main" java.lang.NullPointerException
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:659)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.getFileCount(GoogleDocsUpload.java:661)
    at GoogleDocsUpload.upload(GoogleDocsUpload.java:351)
    at GoogleDocsUpload.main(GoogleDocsUpload.java:302)

What version of the product are you using? On what operating system?
1.3.2
Ubuntu/Linux

Please provide any additional information below.

Original issue reported on code.google.com by dpe...@gmail.com on 26 Mar 2010 at 5:01

GoogleCodeExporter commented 9 years ago
Hi,This might hidden file.

I've write some filter..

GoogleDocsUpload.java:82
--
    private static FileFilter folderFilter = new FileFilter() {
        @Override
        public boolean accept(File file) {
            boolean isMacOSX = file.getName().equals("__MACOSX");
            boolean isDotStart = file.getName().startsWith(".");
            return file.isDirectory()&&!file.isHidden()&&!isMacOSX&&!isDotStart;
        }
    };
--

Original comment by gacha...@gmail.com on 11 Oct 2010 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by anton.be...@gmail.com on 22 Dec 2010 at 2:47