Null Pointer Exception
in
Programming Questions
•
1 year ago
Hi guys,
I'm getting a NullPointerException when I run the code below. It happens on line 3 of animalCell. What am I doing wrong here?
- Textarea myTextarea;
- public void run()
- {
- animalCell();
- }
- void animalCell()
- {
- myTextarea = controlP5.addTextarea("label1","Some text here",100,100,200,60);
- myTextarea.setColorForeground(125);
- myTextarea.moveTo("default");
- }
1