maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MSHARED-434) NPE due to concurrent calls in close() method of StreamFeeder class
Date Tue, 15 Sep 2015 18:51:45 GMT
Tibor Digana created MSHARED-434:
------------------------------------

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

                 Key: MSHARED-434
                 URL: https://issues.apache.org/jira/browse/MSHARED-434
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-shared-utils
    Affects Versions: maven-shared-utils-0.8
            Reporter: Tibor Digana
            Assignee: Tibor Digana
            Priority: Blocker
             Fix For: maven-shared-utils-0.9


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

{code}
private InputStream input;

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

                input = null;
            }
        }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message