Skip to content

[MSHARED-434] NPE due to concurrent calls in close() method of StreamFeeder class  #240

Description

@jira-importer

Tibor Digana opened MSHARED-434 and commented

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;
            }
        }

Affects: maven-shared-utils-0.8

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:blockerBlocks development and/or testing work, production could not run

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions