diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index ec775ef1cab..f4e9df8bfda 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,6 @@ +2003-11-14 David Inglis + Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=46685 + 2003-11-13 Sean Evoy There is a duplicate set of string resources in the standard and managed make UI plugins, so there is little need to keep these resources in the common UI diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/BinaryParserBlock.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/BinaryParserBlock.java index f9602944da3..7ba5d4be39a 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/BinaryParserBlock.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/BinaryParserBlock.java @@ -146,7 +146,10 @@ public class BinaryParserBlock extends AbstractBinaryParserPage { ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(getContainer().getProject()); ICExtensionReference[] ref = desc.get(CCorePlugin.BINARY_PARSER_UNIQ_ID); if (ref.length > 0) { - initial = point.getExtension(ref[0].getID()).getLabel(); + IExtension ext = point.getExtension(ref[0].getID()); + if (ext != null) { + initial = ext.getLabel(); + } } } catch (CoreException e) { @@ -157,7 +160,11 @@ public class BinaryParserBlock extends AbstractBinaryParserPage { if (id == null || id.length() == 0) { initial = point.getExtension(CCorePlugin.DEFAULT_BINARY_PARSER_UNIQ_ID).getLabel(); } else { - initial = point.getExtension(id).getLabel(); + IExtension ext = point.getExtension(id); + if (ext != null) { + initial = ext.getLabel(); + } + } }