Phil wrote: > Dear Miguel (off-list attachment), > > The attached file, struvite.cif, passes a grammar check w/ enCIFer w/o > errors, warnings, or remarks, and displays in its visualizer. I won't make > any claims about it meeting all the official CIF reqs but it displays well > in WebLab ViewerLite, including 2x2x2 multicell, unitcell boundaries, > autobonding by proximity, etc. > > But Jmol.jar from Jmol10pre8 gives me 'java.lang.NullPointerException' :-( > > Suggestions?
The problem is that your file does not have a newline character at the end. I have changed the code to gracefully deal with this situation. The fix will be in the next release. In the meantime, you can get it to work by just putting a newline at the end of the last line of the file. Note: This is a classical problem with parsers. In the old days large numbers of compilers for computer lanaguages would croak if there wasn't a newline at the end of the last line of the file. Countless hours have been lost :-) Miguel ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

