Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-09-06 16:20:47 +0000
committerMike Rennie2013-09-06 16:21:11 +0000
commit535f3fc6e553ec5c9e0afd0e14856570088f6c40 (patch)
treeb86df5a8053f9ec734ee9a91b4f0160487f200d8 /org.eclipse.ui.externaltools
parent70064b52b9bcd2316ef058d5344933115d457752 (diff)
downloadeclipse.platform.debug-535f3fc6e553ec5c9e0afd0e14856570088f6c40.tar.gz
eclipse.platform.debug-535f3fc6e553ec5c9e0afd0e14856570088f6c40.tar.xz
eclipse.platform.debug-535f3fc6e553ec5c9e0afd0e14856570088f6c40.zip
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java
index 3cafc26f2..76fb4d79b 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java
@@ -265,18 +265,19 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin implements
@Override
public void launchAdded(ILaunch launch) {
ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
- try {
- ILaunchConfigurationType launchConfigurationType = launchConfiguration.getType();
- if (launchConfigurationType.getIdentifier().equals(
- IExternalToolConstants.ID_PROGRAM_LAUNCH_CONFIGURATION_TYPE)) {
- if (fWindowListener == null) {
- fWindowListener = new ProgramLaunchWindowListener();
- PlatformUI.getWorkbench().addWindowListener(fWindowListener);
- launchManager.removeLaunchListener(this);
+ if (launchConfiguration != null) {
+ try {
+ ILaunchConfigurationType launchConfigurationType = launchConfiguration.getType();
+ if (launchConfigurationType.getIdentifier().equals(IExternalToolConstants.ID_PROGRAM_LAUNCH_CONFIGURATION_TYPE)) {
+ if (fWindowListener == null) {
+ fWindowListener = new ProgramLaunchWindowListener();
+ PlatformUI.getWorkbench().addWindowListener(fWindowListener);
+ launchManager.removeLaunchListener(this);
+ }
}
+ } catch (CoreException e) {
+ log(e);
}
- } catch (CoreException e) {
- log(e);
}
}

Back to the top