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 <andrew_esh> writes:

   ae> Test "Date SunsetTime = c.getSunset(); " to see if it is returning
   ae> NULL, before using it in the next line.

   ae> On Apr 22, 10:41 am, Jake Colman <col...@ppllc.com> wrote:
   >> The code that triggers this crash is as follows:
   >> 
   >> ZmanimCalendar c = new ZmanimCalendar(l);
   >> Date SunsetTime = c.getSunset();
   >> String SunsetTimeString =
   >>    DateFormat.getTimeInstance(DateFormat.SHORT).format(SunsetTime);
   >> 
   >> What could possibly trigger an NPE in this code?  Is there something I
   >> should be checking about SunsetTime before passing it in to be
   >> formatted?

   ae> -- 
   ae> You received this message because you are subscribed to the Google
   ae> Groups "Android Developers" group.
   ae> To post to this group, send email to android-developers@googlegroups.com
   ae> To unsubscribe from this group, send email to
   ae> android-developers+unsubscr...@googlegroups.com
   ae> For more options, visit this group at
   ae> http://groups.google.com/group/android-developers?hl=en

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to