Matt Flaherty wrote:
> 
> I'm trying to test an addon I'm working on and I have a unit test case
> that runs some code which puts and gets properties on some document
> nodes. In testing, this fails with an AssertionError as indicated. When
> the application is running, the same code works fine. 

When the application is running, assertion checking is turned off.



> Is there anything
> I need to do to initialize that class so that the assertion doesn't
> fail? 

Please read the source code of IdentityLinearHashtable.java (source code
sent in a private email). You are probably invoking get or put or remove
with a null key.

With assertion checking turned off, your code seems to work fine because
System.identityHashCode returns 0 for a null reference.






Reply via email to