Display.getCurrent() returns null

Problem:

I'm displaying a List-type screen and switch display to a Canvas by using the command:

Display.getDisplay(midlet).setCurrent(mTestCanvas);

(mTestCanvas is an instance of a simple Canvas class)

OK so fare, and the screen is updated with the Canvas screen.

However, the command

Display.getDisplay(midlet).getCurrent() returns null !!!

I've tried several other Canvas classes with the same result. With other display-types, it's OK.

Anyone who knows whether there is a bug in the WTK for getCurrent() and Canvas, or am i doing something wrong here ?

I'm using

WTK: v2.5.1

Emulator: Nokia S60 3rd Edition FP1

IDE:Eclipse Europa (RC4)

[722 byte] By [gaucho@noa] at [2007-11-27 9:06:35]
# 1
is midlet is not null?
suparenoa at 2007-7-12 21:42:13 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
hi, midlet is not null. It's only Canvas class that returns null from getCurrent(). (Even though the class is displayed on the screen).gaucho@no.
gaucho@noa at 2007-7-12 21:42:13 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
and?
suparenoa at 2007-7-12 21:42:13 > top of Java-index,Java Mobility Forums,Java ME Technologies...