diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 1b899361a..f046d50cf 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -5922,8 +5922,11 @@ public class PApplet implements PConstants { public XML loadXML(String filename, String options) { try { BufferedReader br = createReader(filename); - if (br != null) return new XML(br, options); - else br = null; + if (br != null) { + return new XML(br, options); + } else { + br = null; + } // can't use catch-all exception, since it might catch the // RuntimeException about the incorrect case sensitivity