MYE
MYE

Reputation: 1003

J2ME getDisplay get null pointer exception

I have a form, that include 2 functions to call 2 canvases, when I am displaying second canvas it is throwing error NullPointerException.

Upvotes: 0

Views: 176

Answers (1)

Lucifer
Lucifer

Reputation: 29632

Please make your Display variable "mf" as static in the code snippet you originally posted.

Upvotes: 1

Related Questions