mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
make #5144 actually work
This commit is contained in:
@@ -5922,12 +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;
|
||||
BufferedReader reader = createReader(filename);
|
||||
if (reader != null) {
|
||||
return new XML(reader, options);
|
||||
}
|
||||
return null;
|
||||
|
||||
// can't use catch-all exception, since it might catch the
|
||||
// RuntimeException about the incorrect case sensitivity
|
||||
|
||||
Reference in New Issue
Block a user