I am trying to guard against them being null. I am getting error reports from users via ACRA that these are returning null sometimes. Hence the safeguard.
On Thu, Jul 7, 2011 at 11:05 PM, TreKing <[email protected]> wrote: > On Thu, Jul 7, 2011 at 12:22 PM, Raghav Sood <[email protected]> wrote: > >> I am getting an error that I can not compare these values as they are >> Doubles in nature and null is not valid here with ||. How can I compare >> these? > > > As the error indicates, they are not object that are comparable to null. > They are guaranteed to have *some* value. What are you trying to guard > against? > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://wiki.androidappcheck.com/ http://www.telstop.tel/ https://market.android.com/developer?pub=Raghav+Sood -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

