Skip to content

Commit 11a5d26

Browse files
committed
Avoid test error.
1 parent 23baae9 commit 11a5d26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/StandardAtomGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ AtomSymbol generateSymbol(IAtomContainer container, IAtom atom, HydrogenPosition
139139

140140
// unset the mass if it's the major isotope (could be an option)
141141
Integer mass = atom.getMassNumber();
142-
if (mass != null &&
142+
if (number != 0 &&
143+
mass != null &&
143144
model != null &&
144145
model.get(StandardGenerator.OmitMajorIsotopes.class) &&
145146
isMajorIsotope(number, mass)) {

0 commit comments

Comments
 (0)