usr/src/java/vpanels/panel/org/opensolaris/os/vp/panel/common/control/Control.java
--- a/usr/src/java/vpanels/panel/org/opensolaris/os/vp/panel/common/control/Control.java Wed Feb 24 16:20:08 2010 -0500
+++ b/usr/src/java/vpanels/panel/org/opensolaris/os/vp/panel/common/control/Control.java Wed Feb 24 16:46:56 2010 -0500
@@ -168,17 +168,21 @@
//
/**
- * Builds a help URL from a page and section, falling back to the
+ * Builds a help URL from a page and optional section, falling back to the
* page if the section is invalid.
*/
protected URL buildHelpURL(String page, String section) {
Class clazz = getClass();
URL url = Finder.getResource(clazz.getClassLoader(),
clazz.getPackage().getName(), page);
- try {
- url = new URL(url, section);
- } catch (MalformedURLException ignore) {
+
+ if (section != null) {
+ try {
+ url = new URL(url, section);
+ } catch (MalformedURLException ignore) {
+ }
}
+
return url;
}