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] [Closed] (MSHARED-434) NPE due to concurrent calls in close() method of StreamFeeder class
Date Tue, 15 Sep 2015 19:22:45 GMT

     [ https://issues.apache.org/jira/browse/MSHARED-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tibor Digana closed MSHARED-434.
--------------------------------
    Resolution: Fixed

r1703274

> 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