From: Egon W. <ego...@gm...> - 2009-02-09 18:00:52
|
On Mon, Feb 9, 2009 at 6:57 PM, Rajarshi Guha <rg...@in...> wrote: > On Feb 9, 2009, at 12:50 PM, Egon Willighagen wrote: >> 1. we do not check symbols, so the above code will give >> NullPointerExceptions. > > Apparently not, since it HashMap.get(Object) will take a null value > (and obviously return a null) value I was refering to the .intValue()... what does PeriodicTable.getAtomicNumber() return for "FooBar" then? Not null? Egon -- ---- http://chem-bla-ics.blogspot.com/ |