Hi, all:

My application runs into the following exception:
It looks like a NullPointer of some paintControl.


Exception in thread "main" java.lang.NullPointerException
at com.visionopen.jiapei.sm2d.VO_2DSMExplorer$2.paint Control(VO_2DSMExplorer.java:284)
at org.eclipse.swt.widgets.TypedListener.handleEvent( TypedListener.java:217)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1176)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1200)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1185)
at org.eclipse.swt.widgets.Control.gtk_expose_event(C ontrol.java:2779)
at org.eclipse.swt.widgets.Composite.gtk_expose_event (Composite.java:670)
at org.eclipse.swt.widgets.Canvas.gtk_expose_event(Ca nvas.java:170)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.j ava:1566)
at org.eclipse.swt.widgets.Control.windowProc(Control .java:4587)
at org.eclipse.swt.widgets.Display.windowProc(Display .java:4191)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event (Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event( OS.java:7588)
at org.eclipse.swt.widgets.Display.eventProc(Display. java:1185)
at org.eclipse.swt.internal.gtk.OS._g_main_context_it eration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_ite ration(OS.java:1860)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3110)
at com.visionopen.jiapei.sm2d.VO_2DSMExplorer.start(V O_2DSMExplorer.java:475)
at com.visionopen.jiapei.sm2d.VO_2DSMExplorer.main(VO _2DSMExplorer.java:748)

Well, I'm using SWT to draw my GUI, and urgently and sincerely expect some help from you guys. Please do give me a hand.


Best Regards
JIA