getting NullPointerException
on this part of code,
public RunningManCanvas(RunningMan midlet) throws Exception {
super(true);
System.out.println("ERROR");
theDisplay = Display.getDisplay(midlet);
theRunningMan = midlet;
// Calculate the screen dimensions.
DISP_WIDTH = getWidth();
DISP_HEIGHT = getHeight();
}
What could be the reason?