Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2012-09-05 20:28:43 +0000
committerRoland Grunberg2012-09-05 21:25:22 +0000
commit9875e35da0eb88a4add3684d5ef1f6027e6bf308 (patch)
treeb08f0b4f4ae64ff546fa6deded95faa85827558e
parent756c7d1a765fdc6bc314ae13378d94fe9ff1fd22 (diff)
downloadorg.eclipse.linuxtools-9875e35da0eb88a4add3684d5ef1f6027e6bf308.tar.gz
org.eclipse.linuxtools-9875e35da0eb88a4add3684d5ef1f6027e6bf308.tar.xz
org.eclipse.linuxtools-9875e35da0eb88a4add3684d5ef1f6027e6bf308.zip
Add null check to result of getting highest priority provider id.
ProfileLaunchConfigurationTabGroup.getHighestProviderId does not return an empty string, rather it returns an id or null. Change-Id: Ic650871ad2b56ad38943f70eaa2ed5d1d8cd7b57 Reviewed-on: https://git.eclipse.org/r/7628 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.provider/src/org/eclipse/linuxtools/internal/profiling/provider/launch/ProviderLaunchConfigurationDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiling/org.eclipse.linuxtools.profiling.provider/src/org/eclipse/linuxtools/internal/profiling/provider/launch/ProviderLaunchConfigurationDelegate.java b/profiling/org.eclipse.linuxtools.profiling.provider/src/org/eclipse/linuxtools/internal/profiling/provider/launch/ProviderLaunchConfigurationDelegate.java
index f9c57e13be..ce126059bc 100644
--- a/profiling/org.eclipse.linuxtools.profiling.provider/src/org/eclipse/linuxtools/internal/profiling/provider/launch/ProviderLaunchConfigurationDelegate.java
+++ b/profiling/org.eclipse.linuxtools.profiling.provider/src/org/eclipse/linuxtools/internal/profiling/provider/launch/ProviderLaunchConfigurationDelegate.java
@@ -61,7 +61,7 @@ public abstract class ProviderLaunchConfigurationDelegate extends
if (providerId.equals("")) {
providerId = ProfileLaunchConfigurationTabGroup
.getHighestProviderId(getProfilingType());
- if (providerId.equals("")) {
+ if (providerId == null) {
// Get highest priority provider
providerId = ProfileLaunchShortcut
.getDefaultLaunchShortcutProviderId(getProfilingType());

Back to the top