membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
93 stars 73 forks source link

NullPointerException in AbstractSchemaCreateor #185

Closed ithena closed 10 years ago

ithena commented 10 years ago

The following line always causes a NullPointerexception since restriction.schema is null.

void createSimpleRestriction(BaseRestriction restriction, Context ctx) {
        if(restriction.base && restriction.base.namespaceURI != Consts.SCHEMA_NS) {
            restriction.schema.getType(restriction.base)?.create(this, ctx)
        }
    }