Dear Bob,

I checked the auxiliaryInfo hash table while debugging this yesterday and it 
had a null string for the fileName key. I'm pretty sure about that.

Regards,
Charles


On 26 Aug 2016, at 4:27 am, Robert Hanson 
<[email protected]<mailto:[email protected]>> wrote:

sorry -- pps: modelIndex will be -1 if multiple models (frames) are visible. 
Could that be it?

On Thu, Aug 25, 2016 at 10:25 PM, Robert Hanson 
<[email protected]<mailto:[email protected]>> wrote:
[sorry, that got messed up with my paste of of the modelIndex < 0 idea.]

Hmm. I don't think it's Jmol. The only way that can happen is if the file 
reader somehow has no file path. But we have in AtomSetCollectionReader:

    filePath = "" + htParams.get("fullPathName");

So I don't see how that can become null.

Try taking a look at viewer.ms.msInfo and seeing what its keys are.
It's public. You are basically saying that in that Hashtable there is no 
"modelFile" key.
Hard to believe....

Ah, wait, this could be:

  public Object getInfo(int modelIndex, String key) {
    return (modelIndex < 0 ? null : am[modelIndex].auxiliaryInfo.get(key));
  }

maybe your modelIndex < 0.







--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900


The University of Dundee is a registered Scottish Charity, No: SC015096
_______________________________________________
Jalview-dev mailing list
[email protected]
http://www.compbio.dundee.ac.uk/mailman/listinfo/jalview-dev

Reply via email to