[ http://issues.apache.org/jira/browse/TUSCANY-27?page=comments#action_12366623 ]
Fuhwei Lwo commented on TUSCANY-27: ----------------------------------- I think we need to support both "" and null for representing default namespace. What do you think? > "No targetNamespace" in XSD is not fully functional yet > ------------------------------------------------------- > > Key: TUSCANY-27 > URL: http://issues.apache.org/jira/browse/TUSCANY-27 > Project: Tuscany > Type: Bug > Components: Java SDO Implementation > Environment: All platforms > Reporter: Fuhwei Lwo > Attachments: NoTargetNamespaceTestCase.java, open-nons.xsd > > If I didn't specify "targetNamespace" in my XSD, I assume I can invoke > DataFactory.INSTANCE.create("", "MyType") or > DataFactory.INSTANCE.create(null, "MyType") to create a data object of MyType. > Now, I got the null pointer exception like .. > Exception in thread "main" java.lang.NullPointerException > at org.eclipse.emf.ecore.util.EcoreUtil.create(EcoreUtil.java:2760) > at > org.apache.tuscany.sdo.helper.DataFactoryImpl.create(DataFactoryImpl. > java:56) > at > org.apache.tuscany.sdo.helper.DataFactoryImpl.create(DataFactoryImpl. > java:43) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
