From: <ha...@us...> - 2012-03-16 03:07:36
|
Revision: 16891 http://jmol.svn.sourceforge.net/jmol/?rev=16891&view=rev Author: hansonr Date: 2012-03-16 03:07:29 +0000 (Fri, 16 Mar 2012) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/api/JmolAdapter.java Modified: trunk/Jmol/src/org/jmol/api/JmolAdapter.java =================================================================== --- trunk/Jmol/src/org/jmol/api/JmolAdapter.java 2012-03-16 03:04:41 UTC (rev 16890) +++ trunk/Jmol/src/org/jmol/api/JmolAdapter.java 2012-03-16 03:07:29 UTC (rev 16891) @@ -223,17 +223,19 @@ // alternative settings, for posterity: public Object openBufferedReader(String name, BufferedReader bufferedReader) { - return getAtomSetCollectionFromReader(name, null, bufferedReader, null); + return getAtomSetCollectionFromReader(name, null, bufferedReader, new Hashtable<String,Object>()); } public Object openBufferedReader(String name, BufferedReader bufferedReader, Map<String, Object> htParams) { + if (htParams == null) + htParams = new Hashtable<String,Object>(); return getAtomSetCollectionFromReader(name, null, bufferedReader, htParams); } public Object openBufferedReader(String name, String type, BufferedReader bufferedReader) { - return getAtomSetCollectionFromReader(name, type, bufferedReader, null); + return getAtomSetCollectionFromReader(name, type, bufferedReader, new Hashtable<String,Object>()); } abstract public Object getAtomSetCollectionFromDOM(Object DOMNode, Map<String, Object> htParams); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |