From 3de428be8a8c1beafa944d255cfee27089672b29 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Mon, 1 Aug 2016 17:21:08 +0100 Subject: [PATCH] JAL-2164 bugfix to convert insCodes of '\000' to ' ' in JmolParser, this fixes the xml marshalling bug --- src/jalview/ext/jmol/JmolParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/jmol/JmolParser.java b/src/jalview/ext/jmol/JmolParser.java index baebe08..ea969ff 100644 --- a/src/jalview/ext/jmol/JmolParser.java +++ b/src/jalview/ext/jmol/JmolParser.java @@ -209,7 +209,8 @@ public class JmolParser extends StructureFile implements JmolStatusListener Atom curAtom = new Atom(atom.x, atom.y, atom.z); curAtom.atomIndex = atom.getIndex(); curAtom.chain = atom.getChainIDStr(); - curAtom.insCode = atom.group.getInsertionCode(); + curAtom.insCode = atom.group.getInsertionCode() == '\000' ? ' ' + : atom.group.getInsertionCode(); curAtom.name = atom.getAtomName(); curAtom.number = atom.getAtomNumber(); curAtom.resName = atom.getGroup3(true); -- 1.7.10.2