old version of clone method in nextframebuffer
This commit is contained in:
parent
62fb41a3a2
commit
e74903508d
@ -24,20 +24,23 @@ public class nextFrameBuffer {
|
||||
}
|
||||
|
||||
public void clone(nextFrameBuffer f) {
|
||||
this.current = f.current;
|
||||
this.next = f.next;
|
||||
|
||||
try{
|
||||
Frame cf = new Frame();
|
||||
cf.clone(f.current);
|
||||
this.current = cf; }
|
||||
catch (NullPointerException n) {
|
||||
this.current = null;
|
||||
this.next = null;
|
||||
}
|
||||
nextFrameBuffer nfb = new nextFrameBuffer();
|
||||
try {
|
||||
nfb.clone(f.next);
|
||||
} catch (NullPointerException n) {}
|
||||
this.next = nfb;
|
||||
|
||||
// try{
|
||||
// Frame cf = new Frame();
|
||||
// cf.clone(f.current);
|
||||
// this.current = cf; }
|
||||
// catch (NullPointerException n) {
|
||||
// this.current = null;
|
||||
// this.next = null;
|
||||
// }
|
||||
// nextFrameBuffer nfb = new nextFrameBuffer();
|
||||
// try {
|
||||
// nfb.clone(f.next);
|
||||
// } catch (NullPointerException n) {}
|
||||
// this.next = nfb;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user