Eclipse + texture = NullPointerException :(
in
Integration and Hardware
•
3 years ago
I've been trying for the last few days to get a texture to load into my processing sketch in Eclipse. I had it working at some point and for the life of me can't figure out what the problem is. I am using loadImage() to load an image into a PImage variable, then use that PImage as the parameter for texture. It does NOT break on loading the image but I keep getting this error regarding the texture call:
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PApplet.texture(PApplet.java:7006)
at particleplayground.Emitter.render(Emitter.java:44)
at particleplayground.Particle_Playground.draw(Particle_Playground.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1425)
at processing.core.PApplet.run(PApplet.java:1327)
at java.lang.Thread.run(Unknown Source)
Its starting to drive me crazy, especially since I did have it working at one time....and theres only two lines to screw up :S Here is my Eclipse project, I hope someone can help!
1