سؤال

I am using db4o database for storing data in my Android application. I want to sort objects on Number field.

But, when I use query.descend("number").orderDescending();, I am getting NullPointerException.

Why?

هل كانت مفيدة؟

المحلول

Finally, solved problem.

Actually the problem was number was stored in format double exponential. Then I converted the number in long and the problem is gone :-)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top