Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2007-07-25 07:45:42 -0400
committerMikhail Khodjaiants2007-07-25 07:45:42 -0400
commit79c143bd481a666031d8b28a423290c9a26e3123 (patch)
tree389a976f0ba741fb9d78f717dc6649e2f439652e /debug/org.eclipse.cdt.debug.mi.ui
parent8563df14dcf478d2d9abc7e5d94462017de3c159 (diff)
downloadorg.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.java8
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 cfa926e2ec..63c9ce1b72 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;
}
}

Back to the top