### Eclipse Workspace Patch 1.0 #P OpenCms Index: src/org/opencms/workplace/list/CmsListResourceTypeIconAction.java =================================================================== RCS file: /usr/local/cvs/opencms/src/org/opencms/workplace/list/CmsListResourceTypeIconAction.java,v retrieving revision 1.8 diff -u -r1.8 CmsListResourceTypeIconAction.java --- src/org/opencms/workplace/list/CmsListResourceTypeIconAction.java 18 Jan 2010 10:02:15 -0000 1.8 +++ src/org/opencms/workplace/list/CmsListResourceTypeIconAction.java 1 Apr 2010 19:07:44 -0000 @@ -153,9 +153,13 @@ html.append(CmsWorkplace.getSkinUri()); if (!enabled) { StringBuffer icon = new StringBuffer(128); - icon.append(iconPath.substring(0, iconPath.lastIndexOf('.'))); + int pos = iconPath.lastIndexOf('.'); + if (pos < 0) { + pos = iconPath.length(); + } + icon.append(iconPath.substring(0, pos)); icon.append("_disabled"); - icon.append(iconPath.substring(iconPath.lastIndexOf('.'))); + icon.append(iconPath.substring(pos)); String resourcesRoot = OpenCms.getSystemInfo().getWebApplicationRfsPath() + "resources/"; File test = new File(resourcesRoot + icon.toString()); if (test.exists()) {