Hi, 

I am new to Castor so please bare with me.

I am using a complex schema, which jaxb cannot process. 

I found that by changing line 553 of TypeConversion.java from 

                common = compare(common, type);
to 
                if (type != null) common = compare(common, type);

(Version 0.9.6.-RC2)
I was able to get Castor not to throw an NPE when the type 
itself was an org.exolab.castor.xml.schema.Union

I have not investigated why this is necessary or whether it breaks anything
else. 

I have not yet had time to produce a fragment which reproduces this problem 
in isolation, I might be able to get permission to release the Schema, 
but hope the above makes sense.

yours
Tim Pizey



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to