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.
2 parents 4b0a9b1 + 1798e90 commit 60db1f9Copy full SHA for 60db1f9
1 file changed
core/src/processing/core/PApplet.java
@@ -5922,7 +5922,12 @@ public XML loadXML(String filename) {
5922
*/
5923
public XML loadXML(String filename, String options) {
5924
try {
5925
- return new XML(createReader(filename), options);
+ BufferedReader br = createReader(filename);
5926
+ if (br != null) {
5927
+ return new XML(br, options);
5928
+ } else {
5929
+ br = null;
5930
+ }
5931
5932
// can't use catch-all exception, since it might catch the
5933
// RuntimeException about the incorrect case sensitivity
0 commit comments