Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-757

NPE crawling with the GoogleDrive Connector

    XMLWordPrintableJSON

    Details

      Description

      Trying to use the GoogleDrive connector with my personal account ManifoldCF returns the following exception:

      FATAL 2013-07-22 17:01:30,838 (Worker thread '8') - Error tossed: null
      java.lang.NullPointerException
      	at org.apache.manifoldcf.crawler.connectors.googledrive.GoogleDriveRepositoryConnector.processDocuments(GoogleDriveRepositoryConnector.java:1064)
      	at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processDocuments(BaseRepositoryConnector.java:423)
      	at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:559)
      

      It seems that the following instruction is causing the issue:

      // Get the file length
      long fileLength = googleFile.getFileSize();
      

      Some files maybe doesn't have size, probably I have many different types of contents in my Drive account and I didn't changed the default query. But I think that should be fixed anyway.

      What do you think?

        Attachments

        1. CONNECTORS-757.patch
          9 kB
          Karl Wright

          Activity

            People

            • Assignee:
              kwright@metacarta.com Karl Wright
              Reporter:
              piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified