Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-434

NPE due to concurrent calls in close() method of StreamFeeder class

    XMLWordPrintableJSON

Details

    Description

      monitor enter fetched null pointer into variable within synchronized block and close() method on InputStream cannot be called.

      private InputStream input;
      
             if ( input != null )
              {
                  synchronized ( input )
                  {
                      try
                      {
                          input.close();
                      }
                      catch ( IOException ex )
                      {
                          // ignore
                      }
      
                      input = null;
                  }
              }
      

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            tibordigana Tibor Digana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: