Skip to content

Commit 0d848b5

Browse files
committed
Issue #62.
1 parent 66307b6 commit 0d848b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/main/java/org/hisrc/jsonix/xml/xsom/MultiplicityCounterNG.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.hisrc.jsonix.xml.xsom;
22

33
import static com.sun.tools.xjc.model.Multiplicity.ONE;
4-
import static com.sun.tools.xjc.model.Multiplicity.ZERO;
54

65
import java.math.BigInteger;
76

@@ -24,7 +23,8 @@ public Multiplicity particle(XSParticle p) {
2423
Multiplicity m = p.getTerm().apply(this);
2524

2625
BigInteger max;
27-
if (m.max == null
26+
if (m == null
27+
|| m.max == null
2828
|| (BigInteger.valueOf(XSParticle.UNBOUNDED).equals(p
2929
.getMaxOccurs())))
3030
max = null;

0 commit comments

Comments
 (0)