myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Büttiker (JIRA) <...@myfaces.apache.org>
Subject [jira] [Created] (ORCHESTRA-68) RequestParameterProviderManager.encodeAndAttachParameters might throw NullPointerException
Date Wed, 10 Aug 2016 13:59:20 GMT
Leo Büttiker created ORCHESTRA-68:
-------------------------------------

             Summary: RequestParameterProviderManager.encodeAndAttachParameters might throw
NullPointerException 
                 Key: ORCHESTRA-68
                 URL: https://issues.apache.org/jira/browse/ORCHESTRA-68
             Project: MyFaces Orchestra
          Issue Type: Bug
          Components: RequestParameterProvider
    Affects Versions: 1.5
            Reporter: Leo Büttiker


Under certain circumstances which I unfortunately can not reproduce all the time (during a
heavy load selenium test with ajax) the method RequestParameterProviderManager.encodeAndAttachParameters
throws an expection because a provider in the list providers is null. 

The assumption is that due to multi-threading the array list might get corrupt under certain
conditions. When I replace the list with a synchronized list the error does not occur. Fixing
the bug can therefor achieved by replacing getProviders with:

{code}
    protected List getProviders() {
        if (providers == null) {
            providers = Collections.synchronizedList(new ArrayList());
        }

        return providers;
    }
{code}



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

Mime
View raw message