diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index de9c7a5d1..f019fb66d 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1416,7 +1416,7 @@ public class PApplet implements PConstants { * Does not shrink array afterwards, silently returns if method not found. */ public void remove(Object object) { - if (removals != null) { + if (removals == null) { entries.remove(object); } else { // Currently iterating the list of methods, remove this afterwards