Revision: 18439 http://sourceforge.net/p/jmol/code/18439 Author: hansonr Date: 2013-07-07 06:06:12 +0000 (Sun, 07 Jul 2013) Log Message: -----------
Modified Paths: -------------- trunk/Jmol/src/org/jmol/util/Parser.java Modified: trunk/Jmol/src/org/jmol/util/Parser.java =================================================================== --- trunk/Jmol/src/org/jmol/util/Parser.java 2013-07-07 05:59:27 UTC (rev 18438) +++ trunk/Jmol/src/org/jmol/util/Parser.java 2013-07-07 06:06:12 UTC (rev 18439) @@ -589,9 +589,11 @@ } public static boolean isOneOf(String key, String semiList) { + if (semiList.length() == 0) + return false; if (semiList.charAt(0) != ';') semiList = ";" + semiList + ";"; - return key.indexOf(";") < 0 && (semiList).indexOf(';' + key + ';') >= 0; + return key.indexOf(";") < 0 && semiList.indexOf(';' + key + ';') >= 0; } public static String getQuotedAttribute(String info, String name) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Jmol-commits mailing list Jmol-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-commits