https://issues.apache.org/bugzilla/show_bug.cgi?id=52154

             Bug #: 52154
           Summary: InitialContextFactory.lookupContext returns null
           Product: JMeter
           Version: 2.5.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: bart.deneu...@cegeka.be
    Classification: Unclassified


When a context doesn't exist a new context is created during lookup. This
context is placed in a MAP with the method putIfAbsent, which returns the
previous value in the map (in this case null because the context didn't exist).
This previous value is assigned to the local variable and is returned. -->
Method returns null.

fix: don't assign the previous value in the map, but keep and return the new
created context
(org.apache.jmeter.protocol.jms.client.InitialContextFactory.lookupContext: 74)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to