Stefan Display#getCurrent() will always return null I haven't checked
that before.
Just to clearify:
As stated before only if the thread you are calling it from is not a ui
thread for a display
Here is an excerpt from the javadoc of Display.getCurrent
"Returns the display which the currently running thread is the
user-interface thread for, or null if the currently running thread is
not a user-interface thread for any display."