Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-282

Nullpointer when calling "save" GridFSInputFile

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Production - MongoJavaDriver 2.14.1

    Description

      Hello,

      If I get an instance of GridFSInputFile from the method createFile() of GridFSInputFile, MongoDB Java Driver assigns null to the attribute _in.

      So, when I want to call the "save" method from GridFSInputFile, I always get a NullPointerException (line 295 - GridFSInputFile) because this value is null, and I cannot set it anywhere (the only place is the constructor and with by the method createFile() is always null)

      Does it make sense to have an method createFile without parameters if I always get a NullPointer when I try to save?

      Many thanks.

      Regards,
      Paco.

      Attachments

        Activity

          People

            barrie Barrie Segal
            pacobenitezchico Francisco Manuel Benitez Chico
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: