Re: [android-developers] Re: NPE in java.util.Calendar

2011-04-22 Thread Mark Murphy
On Fri, Apr 22, 2011 at 1:52 PM, Jake Colman wrote: > > Thanks Mark and Andrew.  The Date variable should never, ever be NULL in > the first place so that didn't occur to me.  I assumed I was using the > API somehow incorrectly. Perhaps your app is being used on a planet with multiple suns, keepi

[android-developers] Re: NPE in java.util.Calendar

2011-04-22 Thread Jake Colman
Thanks Mark and Andrew. The Date variable should never, ever be NULL in the first place so that didn't occur to me. I assumed I was using the API somehow incorrectly. Thanks for the help. > "ae" == andrew esh writes: ae> Test "Date SunsetTime = c.getSunset(); " to see if it is returni

[android-developers] Re: NPE in java.util.Calendar

2011-04-22 Thread andrew_esh
Test "Date SunsetTime = c.getSunset(); " to see if it is returning NULL, before using it in the next line. On Apr 22, 10:41 am, Jake Colman wrote: > The code that triggers this crash is as follows: > > ZmanimCalendar c = new ZmanimCalendar(l); > Date SunsetTime = c.getSunset(); > String SunsetTim