check if baseURI is null in href()

This commit is contained in:
hns 2001-02-24 00:41:07 +00:00
parent cae03f5fef
commit e861654e2c

View file

@ -400,7 +400,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
String base = props.getProperty ("baseURI");
if (base != null)
setBaseURI (base);
String href = n.getHref (root, users, tmpname, baseURI);
String href = n.getHref (root, users, tmpname, baseURI == null ? "/" : baseURI);
// add cache teaser
// href = href + "&tease="+((int) (Math.random ()*999));
return href;