Yep, it was my own stupid fault. I failed to realize that a typo in the
string arg to Name.fromString was producing a null Name. It was a static
final property on my class and I trusted it. Thanks for that.

Regards,
Matt 

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: 29 November 2008 08:40
To: Matt Flaherty
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] AssertionError at
com.xmlmind.util.IdentityLinearHashtable.tableIndex(IdentityLinearHashta
ble.java:43)

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.






This email and any files contained therein is confidential and may contain 
privileged information.  If you are not the named addressee(s) or you have 
otherwise received this in error, you should not distribute or copy this e-mail 
or use any of its content for any purpose. Please notify the sender immediately 
by e-mail if you have received this e-mail in error and delete it from your 
system

Reply via email to