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

    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

            • Assignee:
              tibor17 Tibor Digana
              Reporter:
              tibor17 Tibor Digana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: