[jboss-jira] [JBoss JIRA] Commented: (JBAS-4461) new InitialContext().rebind("x", null) throws NullPointerException
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Mon Jun 4 08:45:08 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4461?page=comments#action_12364075 ]
Carlo de Wolf commented on JBAS-4461:
-------------------------------------
null is a valid argument for obj. (http://java.sun.com/javase/6/docs/api/javax/naming/Context.html#rebind(javax.naming.Name,%20java.lang.Object))
> new InitialContext().rebind("x", null) throws NullPointerException
> ------------------------------------------------------------------
>
> Key: JBAS-4461
> URL: http://jira.jboss.com/jira/browse/JBAS-4461
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Naming
> Affects Versions: JBossAS-5.0.0.Beta2
> Reporter: Carlo de Wolf
> Assigned To: Scott M Stark
> Priority: Critical
>
> String name = "DeepEnvEntryTest";
> getInitialContext().rebind(name, null);
> java.lang.NullPointerException
> at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:505)
> at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:480)
> at javax.naming.InitialContext.rebind(InitialContext.java:367)
> at org.jboss.ejb3.test.ejbthreeXXX.unit.DeepEnvEntryTestCase.test0(DeepEnvEntryTestCase.java:51)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list