Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

draw Image  RSS feed

 
sac kul
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creates a blank image of a specific height and width
createImage( width, height );
gives java.lang.NullPointerException.Please Give the reasons
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the object on which you call the createImage is null?

So you are doing something like this :



Probably component is not initialized!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!