for(int i=0; keys != null && i<keys.length; i++)
if (keys[i] == null) { }
- else if (keys[i].equals("border") || keys[i].equals("image")) {
- if (vals[i].startsWith("http://") || vals[i].startsWith("https://")) {
- b.put(keys[i], null, s.substring(0, s.length() - 4));
- } else {
- String s = Resources.resolve(vals[i].toString() + ".png", importlist);
- if (s != null) b.put(keys[i], null, s.substring(0, s.length() - 4));
- else if (Log.on) Log.log(this, "unable to resolve image " + vals[i].toString() + " referenced in attributes of " + nodeName);
- }
+ else if (keys[i].equals("border") || keys[i].equals("image") &&
+ !vals[i].toString().startsWith("http://") && !vals[i].toString().startsWith("https://")) {
+ String s = Resources.resolve(vals[i].toString() + ".png", importlist);
+ if (s != null) b.put(keys[i], null, s.substring(0, s.length() - 4));
+ else if (Log.on) Log.log(this, "unable to resolve image " + vals[i].toString() + " referenced in attributes of " + nodeName);
}
else b.put(keys[i], null, vals[i]);