Results 1 to 1 of 1
- 02-28-2012, 08:13 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 21
- Rep Power
- 0
Exception: "Can't create handler inside thread that has not called Looper.prepare()"
Hey people, I'm really fed up of getting this error and having no idea how to fix it for my code, I'm getting on this line:
of this function:Java Code:BBEngine.effectsList.add(new PointEffects(this.getContext(), changingX, changingY, "+50"));
Any help would be awesome, cheersJava Code:public void brickCollision() { int x = Level.brickList.size(); for(int i = 0; i < x; i++) { if(changingX >= Level.brickList.get(i).leftOfBrick && changingX <= Level.brickList.get(i).leftOfBrick+BBEngine.BRICK_WIDTH && changingY >= Level.brickList.get(i).topOfBrick && changingY <= Level.brickList.get(i).topOfBrick+BBEngine.BRICK_HEIGHT) { brickBounce3(i); BBEngine.effectsList.add(new PointEffects(this.getContext(), changingX, changingY, "+50")); Level.brickList.remove(i); BBEngine.SCORE+=50; x--; } } }
Similar Threads
-
Got struck with this :- " Exception in thread "main" java.lang.NullPointerException"
By Vermont in forum New To JavaReplies: 5Last Post: 12-21-2011, 06:44 PM -
Exception in thread "main" java.lang.NumberFormatException:input string: "060320
By renu in forum New To JavaReplies: 14Last Post: 04-08-2011, 06:01 PM -
"Exception in thread "Launcher:/Whiteboard" java.lang.RuntimeException: Failed to loa
By Shajith in forum EclipseReplies: 3Last Post: 03-21-2011, 01:48 PM -
Runtime error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
By shantimudigonda in forum New To JavaReplies: 1Last Post: 11-20-2009, 07:58 PM -
[SOLVED] pls help :S . "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerE
By ara in forum New To JavaReplies: 10Last Post: 01-29-2009, 08:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks