diff options
author | Mikhail Khodjaiants | 2007-07-25 11:45:42 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2007-07-25 11:45:42 +0000 |
commit | 79c143bd481a666031d8b28a423290c9a26e3123 (patch) | |
tree | 389a976f0ba741fb9d78f717dc6649e2f439652e /debug/org.eclipse.cdt.debug.mi.ui | |
parent | 8563df14dcf478d2d9abc7e5d94462017de3c159 (diff) | |
download | org.eclipse.cdt-79c143bd481a666031d8b28a423290c9a26e3123.tar.gz org.eclipse.cdt-79c143bd481a666031d8b28a423290c9a26e3123.tar.xz org.eclipse.cdt-79c143bd481a666031d8b28a423290c9a26e3123.zip |
Possible NPE in "getUniqueIdentifier" if the plugin's bundle hasn't been loaded. Replaced by a constant string for the plugin id.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.ui')
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MIUIPlugin.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MIUIPlugin.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MIUIPlugin.java index cfa926e2ecd..63c9ce1b72a 100644 --- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MIUIPlugin.java +++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MIUIPlugin.java @@ -56,12 +56,6 @@ public class MIUIPlugin extends AbstractUIPlugin { * @return the unique identifier of this plugin */ public static String getUniqueIdentifier() { - if ( getDefault() == null ) { - // If the default instance is not yet initialized, - // return a static identifier. This identifier must - // match the plugin id defined in plugin.xml - return PLUGIN_ID; - } - return getDefault().getBundle().getSymbolicName(); + return PLUGIN_ID; } } |