trying to avoid a stack overflow in nextFrameBuffer
This commit is contained in:
parent
ea4762c50e
commit
f6d44128b2
@ -41,8 +41,10 @@ public class nextFrameBuffer {
|
||||
|
||||
public void goToNext() {
|
||||
try {
|
||||
nextFrameBuffer nfb = new nextFrameBuffer();
|
||||
nfb.clone(this.next);
|
||||
this.current = this.next.current;
|
||||
this.next = this.next.next;
|
||||
this.next.clone(nfb);
|
||||
} catch (NullPointerException n) {
|
||||
this.setCurrentFrame(null);
|
||||
this.setNext(new nextFrameBuffer());
|
||||
|
Loading…
x
Reference in New Issue
Block a user