From: <ha...@us...> - 2010-07-09 13:28:23
|
Revision: 13528 http://jmol.svn.sourceforge.net/jmol/?rev=13528&view=rev Author: hansonr Date: 2010-07-09 13:28:17 +0000 (Fri, 09 Jul 2010) Log Message: ----------- version 12.0.RC24 # bug fix: x = write("PDB") when the file is not a PDB file crashes Jmol Modified Paths: -------------- trunk/Jmol/src/org/jmol/modelset/ModelCollection.java trunk/Jmol/src/org/jmol/viewer/Jmol.properties Modified: trunk/Jmol/src/org/jmol/modelset/ModelCollection.java =================================================================== --- trunk/Jmol/src/org/jmol/modelset/ModelCollection.java 2010-07-09 12:37:52 UTC (rev 13527) +++ trunk/Jmol/src/org/jmol/modelset/ModelCollection.java 2010-07-09 13:28:17 UTC (rev 13528) @@ -1154,6 +1154,8 @@ public String getPdbAtomData(BitSet bs, OutputStringBuffer sb) { if (atomCount == 0) return ""; + if (sb == null) + sb = new OutputStringBuffer(null); int iModel = atoms[0].modelIndex; int iModelLast = -1; boolean showModels = (iModel != atoms[atomCount - 1].modelIndex); Modified: trunk/Jmol/src/org/jmol/viewer/Jmol.properties =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2010-07-09 12:37:52 UTC (rev 13527) +++ trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2010-07-09 13:28:17 UTC (rev 13528) @@ -3,6 +3,7 @@ version 12.0.RC24 +# bug fix: x = write("PDB") when the file is not a PDB file crashes Jmol # new feature: within("SMILES"...) REMOVED # new feature: within("SMARTS"...) REMOVED # bug fix: SMILES string self comparison could give wrong stereochemistry This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |