Buggy code:
public class LauncherPlugin extends AbstractUIPlugin { private static LauncherPlugin plugin ; private static ResourceBundle resourceBundle ; public static final String LAUNCH_ITEMS_POINT_ID = "org.eclipse.swt.examples.launcher.launchItems" ; public static final String LAUNCH_ITEMS_XML_CATEGORY = "category" ; public static final String LAUNCH_ITEMS_XML_ITEM = "item" ; public static final String LAUNCH_ITEMS_XML_ITEM_ICON = "icon" ; public static final String LAUNCH_ITEMS_XML_ITEM_DESCRIPTION = "description" ; public static final String LAUNCH_ITEMS_XML_PROGRAM = "program" ; public static final String LAUNCH_ITEMS_XML_PROGRAM_PLUGIN = "pluginId" ; public static final String LAUNCH_ITEMS_XML_PROGRAM_CLASS = "mainClass" ; public static final String LAUNCH_ITEMS_XML_VIEW = "view" ; public static final String LAUNCH_ITEMS_XML_VIEW_VIEWID = "viewId" ; public static final String LAUNCH_ITEMS_XML_ATTRIB_ID = "id" ; public static final String LAUNCH_ITEMS_XML_ATTRIB_NAME = "name" ; public static final String LAUNCH_ITEMS_XML_ATTRIB_ENABLED = "enabled" ; public static final String LAUNCH_ITEMS_XML_ATTRIB_CATEGORY = "category" ; public static final String LAUNCH_ITEMS_XML_VALUE_TRUE = "true" ; public static final String LAUNCH_ITEMS_XML_VALUE_FALSE = "false" ; static final int liClosedFolder = 0 ; static final int liOpenFolder = 1 ; static final int liGenericExample = 2 ; static final String [ ] imageLocations = new String [ ] { "icons//closedFolder.gif" , "icons//openFolder.gif" , "icons//generic_example.gif" } ; static Image [ ] images ; public LauncherPlugin ( ) { } public void start ( BundleContext context ) throws Exception { } public void stop ( BundleContext context ) throws Exception { } public static LauncherPlugin getDefault ( ) { } public static void initResources ( ) { } public static void freeResources ( ) { } public static void logError ( String message , Throwable exception ) { } public static String getResourceString ( String key ) { } public static String getResourceString ( String key , Object [ ] args ) { } public static ItemTreeNode getLaunchItemTree ( ) { } private static void addItemByCategory ( IConfigurationElement ce , ItemTreeNode root , ItemTreeNode theNode , HashMap idMap ) { } private static ItemDescriptor createItemDescriptor ( IConfigurationElement ce , String attribId ) { } private static IConfigurationElement getItemElement ( IConfigurationElement ce , String element ) { } private static String getItemAttribute ( IConfigurationElement ce , String attribute , String defaultValue ) { } private static String getItemDescription ( IConfigurationElement ce ) { } private static String getItemName ( IConfigurationElement ce ) { } private static Image getItemIcon ( IConfigurationElement ce ) { String iconPath = LauncherPlugin . getItemAttribute ( ce , LauncherPlugin . LAUNCH_ITEMS_XML_ITEM_ICON , "" ) ; if ( ( iconPath . length ( ) ) != 0 ) { <START_BUG> String symbolicName = ce . getDeclaringExtension ( ) . getNamespace ( ) ; <END_BUG> Bundle bundle = Platform . getBundle ( symbolicName ) ; Image icon = LauncherPlugin . getImageFromPlugin ( bundle , iconPath ) ; if ( icon != null ) { Image [ ] newImages = new Image [ ( LauncherPlugin . images . length ) + 1 ] ; System . arraycopy ( LauncherPlugin . images , 0 , newImages , 0 , LauncherPlugin . images . length ) ; newImages [ LauncherPlugin . images . length ] = icon ; LauncherPlugin . images = newImages ; return icon ; } } return LauncherPlugin . images [ LauncherPlugin . liGenericExample ] ; } private static Image getImageFromPlugin ( Bundle bundle , String iconPath ) { } }

Fix:
String symbolicName = ce . getDeclaringExtension ( ) . getContributor ( ) . getName ( ) ;