1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-09 11:33:20 +02:00

check if project is null in the constructor.

This commit is contained in:
Alain Magloire 2003-03-02 16:34:51 +00:00
parent d4eb2d4416
commit 316cabcdd7

View file

@ -49,6 +49,7 @@ public class BinaryParserBlock implements IWizardTab {
radios[i] = new String[] { exts[i].getLabel(), exts[i].getUniqueIdentifier()}; radios[i] = new String[] { exts[i].getLabel(), exts[i].getUniqueIdentifier()};
} }
} }
if (project != null) {
try { try {
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(p); ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(p);
ICExtensionReference[] ref = desc.get(CCorePlugin.BINARY_PARSER_UNIQ_ID); ICExtensionReference[] ref = desc.get(CCorePlugin.BINARY_PARSER_UNIQ_ID);
@ -58,6 +59,7 @@ public class BinaryParserBlock implements IWizardTab {
} catch (CoreException e) { } catch (CoreException e) {
//e.printStackTrace(); //e.printStackTrace();
} }
}
if (id == null) { if (id == null) {
id = CCorePlugin.getDefault().getPluginPreferences().getDefaultString(CCorePlugin.PREF_BINARY_PARSER); id = CCorePlugin.getDefault().getPluginPreferences().getDefaultString(CCorePlugin.PREF_BINARY_PARSER);
if (id == null || id.length() == 0) { if (id == null || id.length() == 0) {