Skip to content

Commit

Permalink
67: Fix null-pointer-exception during xml to xsd conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyril Antony committed Mar 7, 2017
1 parent dd3081b commit 235a4f3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ private void merge(ElementDecl e1, ElementDecl e2) throws SchemaException {
return; // -- nothing to merge
if (e2Type.isSimpleType()) {
e1.setType(e2Type);
e1Type = e2Type;
} else {
ComplexType cType = new ComplexType(_schema);
Group group = new Group();
Expand All @@ -455,6 +456,7 @@ private void merge(ElementDecl e1, ElementDecl e2) throws SchemaException {
} else if (e2Type == null) {
if (e1Type.isSimpleType()) {
e2.setType(e1Type);
e2Type = e1Type;
} else {
ComplexType cType = new ComplexType(_schema);
Group group = new Group();
Expand Down

0 comments on commit 235a4f3

Please sign in to comment.