From: <ha...@us...> - 2007-02-27 19:10:55
|
Revision: 6974 http://svn.sourceforge.net/jmol/?rev=6974&view=rev Author: hansonr Date: 2007-02-27 11:10:50 -0800 (Tue, 27 Feb 2007) Log Message: ----------- 11.1.15 minor smiles parser trap fix Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Eval.java Modified: trunk/Jmol/src/org/jmol/viewer/Eval.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Eval.java 2007-02-27 18:58:09 UTC (rev 6973) +++ trunk/Jmol/src/org/jmol/viewer/Eval.java 2007-02-27 19:10:50 UTC (rev 6974) @@ -8791,10 +8791,12 @@ if (isSyntaxCheck) return addX(bs); String smiles = Token.sValue(args[0]); + if (smiles.length() == 0) + return false; PatternMatcher matcher = new PatternMatcher(viewer); try { bs = matcher.getSubstructureSet(smiles); - } catch (InvalidSmilesException e) { + } catch (Exception e) { evalError(e.getMessage()); } return addX(bs); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |