We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66307b6 commit 0d848b5Copy full SHA for 0d848b5
compiler/src/main/java/org/hisrc/jsonix/xml/xsom/MultiplicityCounterNG.java
@@ -1,7 +1,6 @@
1
package org.hisrc.jsonix.xml.xsom;
2
3
import static com.sun.tools.xjc.model.Multiplicity.ONE;
4
-import static com.sun.tools.xjc.model.Multiplicity.ZERO;
5
6
import java.math.BigInteger;
7
@@ -24,7 +23,8 @@ public Multiplicity particle(XSParticle p) {
24
23
Multiplicity m = p.getTerm().apply(this);
25
26
BigInteger max;
27
- if (m.max == null
+ if (m == null
+ || m.max == null
28
|| (BigInteger.valueOf(XSParticle.UNBOUNDED).equals(p
29
.getMaxOccurs())))
30
max = null;
0 commit comments