[Biojava-l] Question about MassCalc

Sanjeev S. Bajwa sanjeev@sbh.com
Mon, 9 Jul 2001 11:10:16 -0700


Hello,

	I have recently downloaded BioJava, and I am trying to use the getMass
method the MassCalc class. I am using the constructor and method that does
not require the isotopicType parameter. Every time I try to run the program
I wrote it gives me a runtime error:
	Exception in thread "main" java.lang.NullPointerException
	at org.biojava.bio.proteomics.MassCalc.getMass(MassCalc.java:202)
	at Molec.main(Molec.java:43)

The Molec class is my class and when I call the getMass method I send it a
param of a Sequence object. And I know that the Sequence object exists
because I have called other methods that give me the type of the sequence
being "PROTEIN" and other things like length. So, I really don't know why it
doesn't work.

Does anybody know what the deal is?


Thanks,
Sanjeev