Bug 52154 - InitialContextFactory.lookupContext returns null
Summary: InitialContextFactory.lookupContext returns null
Status: RESOLVED DUPLICATE of bug 51996
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.5.1
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 15:07 UTC by bart.deneuter
Modified: 2011-11-08 17:57 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bart.deneuter 2011-11-08 15:07:57 UTC
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)
Comment 1 Philippe Mouawad 2011-11-08 17:56:50 UTC

*** This bug has been marked as a duplicate of bug 51996 ***
Comment 2 The ASF infrastructure team 2022-09-24 20:37:48 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2640