문제

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