We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60db1f9 commit 0aa8075Copy full SHA for 0aa8075
1 file changed
core/src/processing/core/PApplet.java
@@ -5922,12 +5922,11 @@ public XML loadXML(String filename) {
5922
*/
5923
public XML loadXML(String filename, String options) {
5924
try {
5925
- BufferedReader br = createReader(filename);
5926
- if (br != null) {
5927
- return new XML(br, options);
5928
- } else {
5929
- br = null;
+ BufferedReader reader = createReader(filename);
+ if (reader != null) {
+ return new XML(reader, options);
5930
}
+ return null;
5931
5932
// can't use catch-all exception, since it might catch the
5933
// RuntimeException about the incorrect case sensitivity
0 commit comments