Hello, there, I'd want to programme on the default command of Exit's event in the fullscreen mode's menu, since I have a thread running and need to be killed before exit. The s60 spec said that the threads will be killed when exit but actually it seems not, because it reports a NullPointerException. And I also tried to write the thread-killing code in destroyApp(boolean b), but it doesn't effect at all.

My testing phone is 7610 (Chinese).

If we can't programme on the default command, what can I do to avoid the NullPointerException when exiting?

Many thanks to who can help me.