small error corrections
This commit is contained in:
@ -40,8 +40,13 @@ public class nextFrameBuffer {
|
||||
}
|
||||
|
||||
public void goToNext() {
|
||||
this.current = this.next.current;
|
||||
this.next = this.next.next;
|
||||
try {
|
||||
this.current = this.next.current;
|
||||
this.next = this.next.next;
|
||||
} catch (NullPointerException n) {
|
||||
this.setCurrentFrame(null);
|
||||
this.setNext(new nextFrameBuffer());
|
||||
}
|
||||
}
|
||||
|
||||
public Frame getCurrentFrame() {
|
||||
|
Reference in New Issue
Block a user