From: <ha...@us...> - 2007-04-18 06:47:59
|
Revision: 7437 http://svn.sourceforge.net/jmol/?rev=7437&view=rev Author: hansonr Date: 2007-04-17 23:47:58 -0700 (Tue, 17 Apr 2007) Log Message: ----------- 11.1.29 bug fix for echo "" Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Text.java Modified: trunk/Jmol/src/org/jmol/viewer/Text.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Text.java 2007-04-18 06:42:21 UTC (rev 7436) +++ trunk/Jmol/src/org/jmol/viewer/Text.java 2007-04-18 06:47:58 UTC (rev 7437) @@ -305,7 +305,7 @@ return; this.text = text; textUnformatted = text; - doFormatText = (viewer != null && text.indexOf("%{") >= 0); + doFormatText = (viewer != null && text != null && text.indexOf("%{") >= 0); if (!doFormatText) recalc(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |